Skip to content

Commit

Permalink
GH-97546: fix flaky asyncio test_wait_for_race_condition test (#102421
Browse files Browse the repository at this point in the history
)
  • Loading branch information
kumaraditya303 authored Mar 5, 2023
1 parent eff9f43 commit a74cd3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Lib/test/test_asyncio/test_waitfor.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ async def test_wait_for_race_condition(self):

fut = loop.create_future()
task = asyncio.wait_for(fut, timeout=0.2)
loop.call_later(0.1, fut.set_result, "ok")
loop.call_soon(fut.set_result, "ok")
res = await task
self.assertEqual(res, "ok")

Expand Down

0 comments on commit a74cd3b

Please sign in to comment.