Skip to content

Commit

Permalink
More mac timing fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
cjrh committed Dec 1, 2019
1 parent 842707b commit bb93b44
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 @@ -25,8 +25,8 @@ async def main():


@pytest.mark.parametrize('exc_delay,expected_results', [
(0.05, []), # Failing task finishes first
(0.15, [1]), # Failing task finishes last
(0.1, []), # Failing task finishes first
(0.3, [1]), # Failing task finishes last
])
def test_exception_cancels_all_tasks(exc_delay, expected_results):
results = []
Expand All @@ -40,7 +40,7 @@ async def f(dt, error=False):
async def main():
async with CoroutineExecutor() as exe:
t1 = exe.submit(f, exc_delay, error=True)
t2 = exe.submit(f, 0.1)
t2 = exe.submit(f, 0.2)

assert t1.done()
assert t2.done()
Expand Down

0 comments on commit bb93b44

Please sign in to comment.