Skip to content

Commit 4f408b3

Browse files
committed
Setting the restart limit in disable_actor_auto_restart fixture
Signed-off-by: Leandro Lucarella <[email protected]>
1 parent b4285eb commit 4f408b3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/conftest.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"""Setup for all the tests."""
55
import pytest
66

7-
from frequenz.sdk.actor import _decorator
7+
from frequenz.sdk.actor import _actor, _decorator
88

99
# Used to impose a hard time limit for some async tasks in tests so that tests don't
1010
# run forever in case of a bug
@@ -24,3 +24,4 @@ def disable_actor_auto_restart(): # type: ignore
2424
Otherwise this fixture won't run.
2525
"""
2626
_decorator.BaseActor.restart_limit = 0
27+
_actor.Actor._restart_limit = 0 # pylint: disable=protected-access

0 commit comments

Comments
 (0)