Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Do multiple sleeps to flush out callbacks
  • Loading branch information
CendioOssman committed Feb 27, 2024
commit 3e1705b27c9b6202a1980403b42e63995e4cfda5
6 changes: 4 additions & 2 deletions Lib/test/test_asyncio/test_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,8 @@ async def serve(rd, wr):

srv.close()
srv.close_clients()
await asyncio.sleep(0.1) # FIXME: flush call_soon()?
await asyncio.sleep(0)
await asyncio.sleep(0)
self.assertTrue(task.done())

async def test_abort_clients(self):
Expand Down Expand Up @@ -244,7 +245,8 @@ async def serve(rd, wr):

srv.close()
srv.abort_clients()
await asyncio.sleep(0.1) # FIXME: flush call_soon()?
await asyncio.sleep(0)
await asyncio.sleep(0)
self.assertTrue(task.done())


Expand Down