Skip to content

Commit a74cd3b

Browse files
GH-97546: fix flaky asyncio test_wait_for_race_condition test (#102421)
1 parent eff9f43 commit a74cd3b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/test/test_asyncio/test_waitfor.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ async def test_wait_for_race_condition(self):
159159

160160
fut = loop.create_future()
161161
task = asyncio.wait_for(fut, timeout=0.2)
162-
loop.call_later(0.1, fut.set_result, "ok")
162+
loop.call_soon(fut.set_result, "ok")
163163
res = await task
164164
self.assertEqual(res, "ok")
165165

0 commit comments

Comments
 (0)