forked from goodboy/tractor
Handle earlier name error crash in debug test
parent
6c8cacc9d1
commit
48f6d514ef
|
@ -634,18 +634,23 @@ 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])
|
|
||||||
|
|
||||||
if ctlc:
|
try:
|
||||||
do_ctlc(child)
|
assert_before(child, [bp_forever_msg])
|
||||||
|
except AssertionError:
|
||||||
|
assert_before(child, [name_error_msg])
|
||||||
|
|
||||||
# should crash with the 2nd name error (simulates
|
else:
|
||||||
# a retry) and then the root eventually (boxed) errors
|
if ctlc:
|
||||||
# after 1 or more further bp actor entries.
|
do_ctlc(child)
|
||||||
|
|
||||||
child.sendline('c')
|
# should crash with the 2nd name error (simulates
|
||||||
child.expect(r"\(Pdb\+\+\)")
|
# a retry) and then the root eventually (boxed) errors
|
||||||
assert_before(child, [name_error_msg])
|
# after 1 or more further bp actor entries.
|
||||||
|
|
||||||
|
child.sendline('c')
|
||||||
|
child.expect(r"\(Pdb\+\+\)")
|
||||||
|
assert_before(child, [name_error_msg])
|
||||||
|
|
||||||
# wait for final error in root
|
# wait for final error in root
|
||||||
# where it crashs with boxed error
|
# where it crashs with boxed error
|
||||||
|
@ -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,
|
||||||
[
|
[
|
||||||
|
|
Loading…
Reference in New Issue