Skip to content

Commit

Permalink
fix leeway closure
Browse files Browse the repository at this point in the history
  • Loading branch information
mosquito committed Jul 4, 2023
1 parent 1c30b0a commit dd191be
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tests/test_aggregate.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,14 @@ async def run() -> Sequence[float]:
return await asyncio.gather(*tasks)

ts: Sequence[float] = asyncio.run(run())
estimated = max(ts) * 3
estimated = max(ts) * 5
default = 0.1
result = max(estimated, default)

if estimated > default:
log.warning("Slow system: leeway increased to %.2f s", leeway)
log.warning("Slow system: leeway increased to %.2f s", result)

return max(estimated, default)
return result


async def test_invalid_func():
Expand Down

0 comments on commit dd191be

Please sign in to comment.