Skip to content

Commit

Permalink
Pad more timings for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
cjrh committed Dec 1, 2019
1 parent e3b245f commit 11457bd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_coroexecutor.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,12 +128,12 @@ async def f(dt):
async def main():
async with CoroutineExecutor() as exe1:
t3 = exe1.submit(f, 0.01)
t4 = exe1.submit(f, 0.10)
t4 = exe1.submit(f, 0.50)
async with CoroutineExecutor() as exe2:
t1 = exe2.submit(f, 0.01)
t2 = exe2.submit(f, 0.10)
t2 = exe2.submit(f, 0.50)
tasks.extend([t1, t2, t3, t4])
await asyncio.sleep(0.05)
await asyncio.sleep(0.1)
raise Exception('oh noes')

with pytest.raises(Exception, match=r'oh noes'):
Expand Down

0 comments on commit 11457bd

Please sign in to comment.