Skip to content

Commit

Permalink
Fix timing issue in test
Browse files Browse the repository at this point in the history
  • Loading branch information
Neil Booth committed Mar 6, 2021
1 parent ef948da commit b6f7897
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_curio.py
Original file line number Diff line number Diff line change
Expand Up @@ -989,13 +989,13 @@ async def coro1():

async def child():
# This will do nothing
await ignore_after(0.001, coro1())
await ignore_after(0.01, coro1())
results.append('coro1 ignored')
return 1

async def parent():
try:
if await ignore_after(0.002, child()) is None:
if await ignore_after(0.02, child()) is None:
results.append('child ignored')
else:
results.append('child succeeded')
Expand Down

0 comments on commit b6f7897

Please sign in to comment.