We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
disable_actor_auto_restart
1 parent b4285eb commit 4f408b3Copy full SHA for 4f408b3
tests/conftest.py
@@ -4,7 +4,7 @@
4
"""Setup for all the tests."""
5
import pytest
6
7
-from frequenz.sdk.actor import _decorator
+from frequenz.sdk.actor import _actor, _decorator
8
9
# Used to impose a hard time limit for some async tasks in tests so that tests don't
10
# run forever in case of a bug
@@ -24,3 +24,4 @@ def disable_actor_auto_restart(): # type: ignore
24
Otherwise this fixture won't run.
25
"""
26
_decorator.BaseActor.restart_limit = 0
27
+ _actor.Actor._restart_limit = 0 # pylint: disable=protected-access
0 commit comments