forked from goodboy/tractor
1
0
Fork 0

Add timeout on spawn error msg check

sigintsaviour_citesthackin
Tyler Goodlet 2022-07-29 00:15:56 -04:00
parent ba857fe85c
commit 61af2dc5aa
1 changed files with 5 additions and 1 deletions

View File

@ -430,7 +430,11 @@ def test_multi_subactors(
# wait for spawn error to show up
spawn_err = "Attaching to pdb in crashed actor: ('spawn_error'"
while spawn_err not in before:
start = time.time()
while (
spawn_err not in before
and (time.time() - start) < 3
):
child.sendline('c')
time.sleep(0.1)
child.expect(r"\(Pdb\+\+\)")