Skip to content

Commit

Permalink
pythonGH-97546: fix flaky asyncio test_wait_for_race_condition test (
Browse files Browse the repository at this point in the history
  • Loading branch information
kumaraditya303 authored and hugovk committed Mar 6, 2023
1 parent c9931ce commit 5a078fc
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 5a078fc

Please sign in to comment.