Skip to content

Commit 85de14f

Browse files
committed
Increase sleep time to allow token expire to account for windows
environment clock issue.
1 parent 1c20c80 commit 85de14f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugins/api/rate-limit/test/org/apache/cloudstack/ratelimit/ApiRateLimitTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ public void expiryOfCounterIsSupported() throws Exception {
181181
assertTrue("The first request should be allowed", isUnderLimit(key));
182182

183183
// Allow the token to expire
184-
Thread.sleep(1001);
184+
Thread.sleep(1020);
185185

186186
assertTrue("Another request after interval should be allowed as well", isUnderLimit(key));
187187
}

0 commit comments

Comments
 (0)