Skip to content

Commit

Permalink
Only expect further message in non-name-error first case
Browse files Browse the repository at this point in the history
  • Loading branch information
goodboy committed Jul 4, 2021
1 parent 6aab16f commit 55760b3
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions tests/test_debugger.py
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ def test_multi_daemon_subactors(spawn, loglevel):
next_msg = name_error_msg

elif name_error_msg in before:
next_msg = bp_forever_msg
next_msg = None

else:
raise ValueError("Neither log msg was found !?")
Expand All @@ -320,7 +320,8 @@ def test_multi_daemon_subactors(spawn, loglevel):
child.expect(r"\(Pdb\+\+\)")
before = str(child.before.decode())

assert next_msg in before
if next_msg:
assert next_msg in before

child.sendline('c')

Expand All @@ -331,9 +332,10 @@ def test_multi_daemon_subactors(spawn, loglevel):
try:
child.sendline('c')
child.expect(pexpect.EOF)

except pexpect.exceptions.TIMEOUT:
# Failed to exit using continue..?

# Failed to exit using continue..?
child.sendline('q')
child.expect(pexpect.EOF)

Expand Down

0 comments on commit 55760b3

Please sign in to comment.