diff --git a/plugins/api/rate-limit/test/org/apache/cloudstack/ratelimit/ApiRateLimitTest.java b/plugins/api/rate-limit/test/org/apache/cloudstack/ratelimit/ApiRateLimitTest.java index 4ffab7a8c7e..502b15cf316 100644 --- a/plugins/api/rate-limit/test/org/apache/cloudstack/ratelimit/ApiRateLimitTest.java +++ b/plugins/api/rate-limit/test/org/apache/cloudstack/ratelimit/ApiRateLimitTest.java @@ -181,7 +181,7 @@ public class ApiRateLimitTest { assertTrue("The first request should be allowed", isUnderLimit(key)); // Allow the token to expire - Thread.sleep(1001); + Thread.sleep(1020); assertTrue("Another request after interval should be allowed as well", isUnderLimit(key)); }