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.
actor_auto_restart_once
1 parent 034ed05 commit 3670243Copy full SHA for 3670243
tests/conftest.py
@@ -44,3 +44,10 @@ def disable_actor_auto_restart() -> collections.abc.Iterator[None]:
44
"""Disable auto-restart of actors while running tests."""
45
with actor_restart_limit(0):
46
yield
47
+
48
49
+@pytest.fixture
50
+def actor_auto_restart_once() -> collections.abc.Iterator[None]:
51
+ """Make actors restart only once."""
52
+ with actor_restart_limit(1):
53
+ yield
0 commit comments