Skip to content

Commit 7e0213c

Browse files
committed
Tests: Prevent inf actor restarts on exceptions
Signed-off-by: Mathias L. Baumann <[email protected]>
1 parent c37c15e commit 7e0213c

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

tests/test_frequenz_dispatch.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,8 @@ async def actor_env() -> AsyncIterator[ActorTestEnv]:
7171
client=client,
7272
)
7373

74+
actor._restart_limit = 0
75+
7476
actor.start()
7577
try:
7678
yield ActorTestEnv(

tests/test_mananging_actor.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ async def test_env() -> AsyncIterator[TestEnv]:
7777
updates_sender=updates_channel.new_sender(),
7878
)
7979

80+
runner_actor._restart_limit = 0
8081
runner_actor.start()
8182

8283
yield TestEnv(

0 commit comments

Comments
 (0)