forked from goodboy/tractor
1
0
Fork 0

Handle earlier name error crash in debug test

harden_cluster_tests
Tyler Goodlet 2022-12-12 14:05:32 -05:00
parent 6c8cacc9d1
commit 48f6d514ef
1 changed files with 14 additions and 13 deletions

View File

@ -634,8 +634,13 @@ def test_multi_daemon_subactors(
# expect another breakpoint actor entry # expect another breakpoint actor entry
child.sendline('c') child.sendline('c')
child.expect(r"\(Pdb\+\+\)") child.expect(r"\(Pdb\+\+\)")
assert_before(child, [bp_forever_msg])
try:
assert_before(child, [bp_forever_msg])
except AssertionError:
assert_before(child, [name_error_msg])
else:
if ctlc: if ctlc:
do_ctlc(child) do_ctlc(child)
@ -660,10 +665,6 @@ def test_multi_daemon_subactors(
except AssertionError: except AssertionError:
break break
# child.sendline('c')
# assert_before(
# child.sendline('c')
assert_before( assert_before(
child, child,
[ [