Skip to content

Commit

Permalink
Adjust flaky test times.
Browse files Browse the repository at this point in the history
  • Loading branch information
cheatfate committed Aug 23, 2023
1 parent db10030 commit 6f7ce5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/testratelimit.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 6f7ce5f

Please sign in to comment.