mirror of https://github.com/python/cpython
GH-97546: fix flaky asyncio `test_wait_for_race_condition` test (#102421)
This commit is contained in:
parent
eff9f43924
commit
a74cd3ba5d
|
@ -159,7 +159,7 @@ class AsyncioWaitForTest(unittest.IsolatedAsyncioTestCase):
|
|||
|
||||
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")
|
||||
|
||||
|
|
Loading…
Reference in New Issue