Skip to content

Commit

Permalink
tests: Increase allowed upper bound for runtime
Browse files Browse the repository at this point in the history
  • Loading branch information
sondrelg committed Oct 23, 2022
1 parent 6acf149 commit 5aefbd9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_semaphore.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ async def test_semaphore_runtimes(n, capacity, sleep, timeout):

before = datetime.now()
await asyncio.gather(*tasks)
assert timeout <= delta_to_seconds(datetime.now() - before) <= timeout * 1.1
assert timeout <= delta_to_seconds(datetime.now() - before) <= timeout * 1.2


async def test_sleep_is_non_blocking():
Expand Down

0 comments on commit 5aefbd9

Please sign in to comment.