Add timeout on spawn error msg check

signint_saviour
Tyler Goodlet 2022-07-29 00:15:56 -04:00
parent 1d4d55f5cd
commit 20c660faa7
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\+\+\)")