summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorKumar Aditya <59607654+kumaraditya303@users.noreply.github.com>2023-03-05 06:45:22 (GMT)
committerGitHub <noreply@github.com>2023-03-05 06:45:22 (GMT)
commita74cd3ba5de1aad1a1e1ee57328b54c22be47f77 (patch)
treeb2371098f0029b82a93466479b9ff5e8f5f0449a /Lib
parenteff9f43924fc836970b2378d58523388d9246194 (diff)
downloadcpython-a74cd3ba5de1aad1a1e1ee57328b54c22be47f77.zip
cpython-a74cd3ba5de1aad1a1e1ee57328b54c22be47f77.tar.gz
cpython-a74cd3ba5de1aad1a1e1ee57328b54c22be47f77.tar.bz2
GH-97546: fix flaky asyncio `test_wait_for_race_condition` test (#102421)
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_asyncio/test_waitfor.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_asyncio/test_waitfor.py b/Lib/test/test_asyncio/test_waitfor.py
index ed80540..d5c02ba 100644
--- a/Lib/test/test_asyncio/test_waitfor.py
+++ b/Lib/test/test_asyncio/test_waitfor.py
@@ -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")