Skip to content

Commit d7d97dc

Browse files
author
Martin Durant
committed
backpressure test on slow infrastructure
1 parent 4f45852 commit d7d97dc

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

streamz/tests/test_sources.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,10 +141,10 @@ def test_from_iterable():
141141
def test_from_iterable_backpressure():
142142
it = iter(range(5))
143143
source = Source.from_iterable(it)
144-
L = source.rate_limit(0.01).sink_to_list()
144+
L = source.rate_limit(0.1).sink_to_list()
145145
source.start()
146146

147-
wait_for(lambda: L == [0], 1)
147+
wait_for(lambda: L == [0], 1, period=0.01)
148148
assert next(it) == 2 # 1 is in blocked _emit
149149

150150

0 commit comments

Comments
 (0)