forked from goodboy/tractor
Add timeout on spawn error msg check
parent
ba857fe85c
commit
61af2dc5aa
|
@ -430,7 +430,11 @@ def test_multi_subactors(
|
||||||
|
|
||||||
# wait for spawn error to show up
|
# wait for spawn error to show up
|
||||||
spawn_err = "Attaching to pdb in crashed actor: ('spawn_error'"
|
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')
|
child.sendline('c')
|
||||||
time.sleep(0.1)
|
time.sleep(0.1)
|
||||||
child.expect(r"\(Pdb\+\+\)")
|
child.expect(r"\(Pdb\+\+\)")
|
||||||
|
|
Loading…
Reference in New Issue