mirror of https://github.com/apache/cloudstack.git
Increase sleep time to allow token expire to account for windows
environment clock issue.
This commit is contained in:
parent
1c20c80cb5
commit
85de14f6a4
|
|
@ -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));
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue