diff --git a/tests/testratelimit.nim b/tests/testratelimit.nim index bf281eec7..2a7560bf6 100644 --- a/tests/testratelimit.nim +++ b/tests/testratelimit.nim @@ -49,7 +49,7 @@ suite "Token Bucket": # Consume 10* the budget cap let beforeStart = Moment.now() waitFor(bucket.consume(1000).wait(5.seconds)) - check Moment.now() - beforeStart in 900.milliseconds .. 1500.milliseconds + check Moment.now() - beforeStart in 900.milliseconds .. 2200.milliseconds test "Sync manual replenish": var bucket = TokenBucket.new(1000, 0.seconds)