clebertsuconic commented on code in PR #4574:
URL: https://github.com/apache/activemq-artemis/pull/4574#discussion_r1291602392


##########
tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/management/ActiveMQServerControlTest.java:
##########
@@ -257,6 +257,13 @@ public void testSecurityCacheSizes() throws Exception {
       Wait.assertEquals(usingCore() ? 8 : 1, () -> 
serverControl.getAuthorizationCacheSize());
    }
 
+   @Test
+   public void testCurrentTime() throws Exception {
+      long time = System.currentTimeMillis();
+      ActiveMQServerControl serverControl = createManagementControl();
+      Assert.assertTrue(serverControl.getCurrentTimeMillis() >= time);

Review Comment:
   I wouldn't check for a delta. As the operation should return the current 
time. The second call must be >=.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to