From c821690834753ecab7ffee165825cc3158a2d449 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Sat, 8 Aug 2020 15:16:10 -0400 Subject: [PATCH] Actor cancellation is now more latent; loosen timeing --- tests/test_pubsub.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/test_pubsub.py b/tests/test_pubsub.py index 745e5ec..aaee831 100644 --- a/tests/test_pubsub.py +++ b/tests/test_pubsub.py @@ -204,18 +204,18 @@ def test_multi_actor_subs_arbiter_pub( await trio.sleep(0.5) await even_portal.cancel_actor() - await trio.sleep(0.5) + await trio.sleep(1) if pub_actor == 'arbiter': assert 'even' not in get_topics() await odd_portal.cancel_actor() - await trio.sleep(1) + await trio.sleep(2) if pub_actor == 'arbiter': while get_topics(): await trio.sleep(0.1) - if time.time() - start > 1: + if time.time() - start > 2: pytest.fail("odds subscription never dropped?") else: await master_portal.cancel_actor()