Fix ratelimit test
This commit is contained in:
parent
005358f4bf
commit
99fdbcd1fe
1 changed files with 1 additions and 1 deletions
|
@ -53,7 +53,7 @@ class TestRateLimit:
|
||||||
|
|
||||||
# Wait 0.1s cooldown
|
# Wait 0.1s cooldown
|
||||||
assert not RateLimit.isAllowed("counting", 0.1)
|
assert not RateLimit.isAllowed("counting", 0.1)
|
||||||
time.sleep(0.1)
|
time.sleep(0.11)
|
||||||
assert RateLimit.isAllowed("counting", 0.1)
|
assert RateLimit.isAllowed("counting", 0.1)
|
||||||
|
|
||||||
# No queue = instant again
|
# No queue = instant again
|
||||||
|
|
Loading…
Reference in a new issue