Fix ratelimit test

This commit is contained in:
shortcutme 2018-01-19 02:32:11 +01:00
parent 005358f4bf
commit 99fdbcd1fe
No known key found for this signature in database
GPG key ID: 5B63BAE6CB9613AE

View file

@ -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