mirror of https://github.com/apache/cloudstack.git
Fix unit test failure only on Windows environment.
This commit is contained in:
parent
74efaada27
commit
1c20c80cb5
|
|
@ -219,7 +219,8 @@ public class ApiRateLimitTest {
|
|||
ApiLimitResponse response = _limitService.searchApiLimit(testAccount);
|
||||
assertEquals("apiIssued is incorrect", 5, response.getApiIssued());
|
||||
assertEquals("apiAllowed is incorrect", 5, response.getApiAllowed());
|
||||
assertTrue("expiredAfter is incorrect", response.getExpireAfter() < 1000);
|
||||
// using <= to account for inaccurate System.currentTimeMillis() clock in Windows environment
|
||||
assertTrue("expiredAfter is incorrect", response.getExpireAfter() <= 1000);
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue