mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
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…
x
Reference in New Issue
Block a user