Increase sleep time to allow token expire to account for windows

environment clock issue.
This commit is contained in:
Min Chen 2013-01-29 11:19:09 -08:00
parent 1c20c80cb5
commit 85de14f6a4
1 changed files with 1 additions and 1 deletions

View File

@ -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));
}