INT-2833 Fix Test Race Condition

Empty message group expiry used a < test instead of <=. This caused
the group in the test to be not deleted when it was expected to be.
This commit is contained in:
Gary Russell
2012-11-30 15:56:21 -05:00
parent 120410f78c
commit 3d0ffd2e7b

View File

@@ -290,7 +290,7 @@ public abstract class AbstractCorrelatingMessageHandler extends AbstractMessageH
* groups. A longer timeout for empty groups can be enabled by
* setting minimumTimeoutForEmptyGroups.
*/
removeGroup = lastModifiedNow < (System.currentTimeMillis() - this.minimumTimeoutForEmptyGroups);
removeGroup = lastModifiedNow <= (System.currentTimeMillis() - this.minimumTimeoutForEmptyGroups);
if (removeGroup && logger.isDebugEnabled()) {
logger.debug("Removing empty group: " + group.getGroupId());
}