From 1e49066b16dae6f76617c7f7f445756a015786f3 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Wed, 30 Jun 2021 13:50:32 -0400 Subject: [PATCH] Not sure exactly, but we're getting a top level multierr now? --- tests/test_cancellation.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/tests/test_cancellation.py b/tests/test_cancellation.py index da181c6..5da87ce 100644 --- a/tests/test_cancellation.py +++ b/tests/test_cancellation.py @@ -123,8 +123,15 @@ def test_multierror_fast_nursery(arb_addr, start_method, num_subactors, delay): assert exc_info.type == tractor.MultiError err = exc_info.value - assert len(err.exceptions) == num_subactors - for exc in err.exceptions: + exceptions = err.exceptions + + if len(exceptions) == 2: + # sometimes oddly now there's an embedded BrokenResourceError ? + exceptions = exceptions[1].exceptions + + assert len(exceptions) == num_subactors + + for exc in exceptions: assert isinstance(exc, tractor.RemoteActorError) assert exc.type == AssertionError