diff --git a/examples/debugging/multi_subactor_root_errors.py b/examples/debugging/multi_subactor_root_errors.py index 62af999..8a7fa43 100644 --- a/examples/debugging/multi_subactor_root_errors.py +++ b/examples/debugging/multi_subactor_root_errors.py @@ -26,6 +26,11 @@ async def main(): ├─ python -m tractor._child --uid ('name_error', 'a7caf490 ...) `-python -m tractor._child --uid ('spawn_error', '52ee14a5 ...) `-python -m tractor._child --uid ('name_error', '3391222c ...) + + Order of failure: + - nested name_error sub-sub-actor + - root actor should then fail on assert + - program termination """ async with tractor.open_nursery() as n: diff --git a/tests/test_debugger.py b/tests/test_debugger.py index 5360b4b..1f5c6d2 100644 --- a/tests/test_debugger.py +++ b/tests/test_debugger.py @@ -343,11 +343,14 @@ def test_multi_subactors_root_errors(spawn): # should now get attached in root with assert error before = str(child.before.decode()) + # should have come just after priot prompt - assert "Cancelling nursery in ('spawn_error'," in before assert "Attaching to pdb in crashed actor: ('arbiter'" in before assert "AssertionError" in before + # warnings assert we probably don't need + # assert "Cancelling nursery in ('spawn_error'," in before + # continue again child.sendline('c') child.expect(pexpect.EOF) @@ -369,6 +372,9 @@ def test_multi_nested_subactors_error_through_nurseries(spawn): child = spawn('multi_nested_subactors_error_up_through_nurseries') + # startup time can be iffy + time.sleep(1) + for i in range(12): try: child.expect(r"\(Pdb\+\+\)")