haanhvu commented on pull request #3812:
URL: https://github.com/apache/activemq-artemis/pull/3812#issuecomment-958759102
> Can you check on testSimpleTickforMinDiskFree(). it's always failing.
That test is just a following copy of testSimpleTickforMaxDiskUsage()
(initally testSimpleTick())
The test fails because I haven't fully understood the logic of
testSimpleTick. Can you pls explain to me the logic of this code:
```
storeMonitor.tick();
Assert.assertEquals(0, overMaxUsage.get());
Assert.assertEquals(1, tick.get());
Assert.assertEquals(1, underMaxUsage.get());
storeMonitor.setMaxUsage(0);
storeMonitor.tick();
Assert.assertEquals(1, overMaxUsage.get());
Assert.assertEquals(2, tick.get());
Assert.assertEquals(1, underMaxUsage.get());
```
--
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]