Skip to content
Snippets Groups Projects
Commit 044d6cd2 authored by Krzysztof Mochocki's avatar Krzysztof Mochocki
Browse files

Use StrictOverseer

parent 14ae9d05
No related branches found
No related tags found
1 merge request!246Clive integration related fixes
Pipeline #115415 passed
...@@ -6,6 +6,7 @@ from typing import TYPE_CHECKING, Any, cast ...@@ -6,6 +6,7 @@ from typing import TYPE_CHECKING, Any, cast
from beekeepy import Settings from beekeepy import Settings
from helpy import Hived from helpy import Hived
from helpy._communication.overseers import StrictOverseer
from test_tools.__private.scope import context from test_tools.__private.scope import context
from test_tools.__private.user_handles.implementation import Implementation as UserHandleImplementation from test_tools.__private.user_handles.implementation import Implementation as UserHandleImplementation
...@@ -19,10 +20,7 @@ class BaseNode(UserHandleImplementation, Hived): ...@@ -19,10 +20,7 @@ class BaseNode(UserHandleImplementation, Hived):
self.__name = context.names.register_numbered_name(name) self.__name = context.names.register_numbered_name(name)
super().__init__( super().__init__(
handle=handle, handle=handle,
settings=Settings( settings=Settings(period_between_retries=timedelta(seconds=0.5), max_retries=8, overseer=StrictOverseer),
period_between_retries=timedelta(seconds=0.5),
max_retries=8,
),
) )
def __str__(self) -> str: def __str__(self) -> str:
......
...@@ -10,6 +10,7 @@ from beekeepy import Beekeeper, Settings ...@@ -10,6 +10,7 @@ from beekeepy import Beekeeper, Settings
import wax import wax
from helpy import Hf26Asset as Asset from helpy import Hf26Asset as Asset
from helpy import wax as wax_helpy from helpy import wax as wax_helpy
from helpy._communication.overseers import StrictOverseer
from helpy.exceptions import ErrorInResponseError from helpy.exceptions import ErrorInResponseError
from schemas.fields.basic import PublicKey from schemas.fields.basic import PublicKey
from schemas.fields.hex import Hex from schemas.fields.hex import Hex
...@@ -157,7 +158,9 @@ class Wallet(UserHandleImplementation, ScopedObject): ...@@ -157,7 +158,9 @@ class Wallet(UserHandleImplementation, ScopedObject):
if self.connected_node is not None and not self.connected_node.is_running(): if self.connected_node is not None and not self.connected_node.is_running():
raise exceptions.NodeIsNotRunningError("Before attaching wallet you have to run node") raise exceptions.NodeIsNotRunningError("Before attaching wallet you have to run node")
self.__beekeeper = Beekeeper.factory(settings=Settings(working_directory=self.directory)) self.__beekeeper = Beekeeper.factory(
settings=Settings(working_directory=self.directory, overseer=StrictOverseer)
)
self.__beekeeper_session = self.__beekeeper.create_session() self.__beekeeper_session = self.__beekeeper.create_session()
try: try:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment