We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9a80c35 commit 94d029aCopy full SHA for 94d029a
1 file changed
streamz/tests/test_core.py
@@ -140,8 +140,7 @@ async def add_native(x=0, y=0):
140
141
yield source.emit(0)
142
143
- yield gen.moment # Must yield to the event loop to ensure it finished
144
- assert L == [3]
+ yield await_for(lambda: L == [3], 1)
145
146
147
@pytest.mark.asyncio
@@ -158,8 +157,7 @@ async def add_native(x=0, y=0):
158
157
159
await source.emit(0)
160
161
- await asyncio.sleep(0) # Must yield to the event loop to ensure it finished
162
+ await await_for(lambda: L == [3], 1)
163
164
165
def test_map_args():
0 commit comments