From 85de14f6a45d802edaef6c7fb4e2a78f0db83c3b Mon Sep 17 00:00:00 2001 From: Min Chen Date: Tue, 29 Jan 2013 11:19:09 -0800 Subject: [PATCH] Increase sleep time to allow token expire to account for windows environment clock issue. --- .../test/org/apache/cloudstack/ratelimit/ApiRateLimitTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); }