File tree 1 file changed +4
-0
lines changed
1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -358,6 +358,8 @@ async def test_race_condition_cancel_before() -> None:
358
358
"""
359
359
360
360
async def test_task (deadline : float , loop : asyncio .AbstractEventLoop ) -> None :
361
+ # We need the internal Timeout class to specify the deadline (not delay).
362
+ # This is needed to create the precise timing to reproduce the race condition.
361
363
with Timeout (deadline , loop ):
362
364
await asyncio .sleep (10 )
363
365
@@ -382,6 +384,8 @@ async def test_race_condition_cancel_after() -> None:
382
384
"""
383
385
384
386
async def test_task (deadline : float , loop : asyncio .AbstractEventLoop ) -> None :
387
+ # We need the internal Timeout class to specify the deadline (not delay).
388
+ # This is needed to create the precise timing to reproduce the race condition.
385
389
with Timeout (deadline , loop ):
386
390
await asyncio .sleep (10 )
387
391
You can’t perform that action at this time.
0 commit comments