mirror of
https://github.com/python/cpython
synced 2026-09-29 12:10:30 +03:00
GH-97546: fix flaky asyncio test_wait_for_race_condition test (#102421)
This commit is contained in:
parent
eff9f43924
commit
a74cd3ba5d
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue