Skip to content

Commit 5a50b14

Browse files
Fix race in test
1 parent 56b28d3 commit 5a50b14

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
@@ -377,6 +377,9 @@ async def receive_chunks() -> None:
377377
await client.close()
378378
await connecting
379379

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

0 commit comments

Comments
 (0)