From 58805a043089a0c33c2f4bb39d6346ada7c24096 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Mon, 6 Dec 2021 12:17:26 -0500 Subject: [PATCH] Slight delay to avoid flaky bcast race --- tests/test_task_broadcasting.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_task_broadcasting.py b/tests/test_task_broadcasting.py index 4c3d1ff..9b4258e 100644 --- a/tests/test_task_broadcasting.py +++ b/tests/test_task_broadcasting.py @@ -334,7 +334,7 @@ def test_ensure_slow_consumers_lag_out( if task.name == 'sub_1': # trigger checkpoint to clean out other subs - await trio.sleep(0) + await trio.sleep(0.01) # the non-lagger got # a ``trio.EndOfChannel`` @@ -401,7 +401,7 @@ def test_ensure_slow_consumers_lag_out( assert not tx._state.open_send_channels # check that "first" bcaster that we created - # above, never wass iterated and is thus overrun + # above, never was iterated and is thus overrun try: await brx.receive() except Lagged: