DaanHoogland commented on code in PR #11834:
URL: https://github.com/apache/cloudstack/pull/11834#discussion_r2489524978
##########
framework/config/src/test/java/org/apache/cloudstack/framework/config/ConfigKeyScheduledExecutionWrapperTest.java:
##########
@@ -156,7 +161,11 @@ static class TestRunnable implements Runnable {
@Override
public void run() {
- runCount++;
+ long resetMsVal = resetMs.get();
+ if (resetMsVal == 0 || System.currentTimeMillis() - resetMsVal >
DELTA_WAIT_MS) {
+ runCount.incrementAndGet();
+ }
+ resetMs.set(0);
Review Comment:
this line negates the increment. is this intended?
--
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]