Skip to content

Commit 1f5b4c3

Browse files
Fix race in test
1 parent 8430149 commit 1f5b4c3

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

tests/v2/test_v2_cancellation.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -378,6 +378,9 @@ async def receive_chunks() -> None:
378378
await client.close()
379379
await connecting
380380

381+
# Wait until the close signal makes it back to the server
382+
await asyncio.sleep(0.1)
383+
381384
# Ensure we're listening to close messages as well
382385
server_handler.cancel()
383386
await server_handler

0 commit comments

Comments
 (0)