Slight delay to avoid flaky bcast race
parent
142083d81b
commit
58805a0430
|
@ -334,7 +334,7 @@ def test_ensure_slow_consumers_lag_out(
|
||||||
|
|
||||||
if task.name == 'sub_1':
|
if task.name == 'sub_1':
|
||||||
# trigger checkpoint to clean out other subs
|
# trigger checkpoint to clean out other subs
|
||||||
await trio.sleep(0)
|
await trio.sleep(0.01)
|
||||||
|
|
||||||
# the non-lagger got
|
# the non-lagger got
|
||||||
# a ``trio.EndOfChannel``
|
# a ``trio.EndOfChannel``
|
||||||
|
@ -401,7 +401,7 @@ def test_ensure_slow_consumers_lag_out(
|
||||||
assert not tx._state.open_send_channels
|
assert not tx._state.open_send_channels
|
||||||
|
|
||||||
# check that "first" bcaster that we created
|
# check that "first" bcaster that we created
|
||||||
# above, never wass iterated and is thus overrun
|
# above, never was iterated and is thus overrun
|
||||||
try:
|
try:
|
||||||
await brx.receive()
|
await brx.receive()
|
||||||
except Lagged:
|
except Lagged:
|
||||||
|
|
Loading…
Reference in New Issue