mirror of https://github.com/apache/activemq.git
AMQ-6979 - fix test regression dependent on serial excution of expiry processing across destinations
This commit is contained in:
parent
51ec4590eb
commit
4521f47e36
|
@ -36,6 +36,8 @@ import org.apache.activemq.util.Wait;
|
|||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
import java.util.concurrent.TimeUnit;
|
||||
|
||||
public class DeadLetterExpiryTest extends DeadLetterTest {
|
||||
private static final Logger LOG = LoggerFactory.getLogger(DeadLetterExpiryTest.class);
|
||||
|
||||
|
@ -156,7 +158,8 @@ public class DeadLetterExpiryTest extends DeadLetterTest {
|
|||
try {
|
||||
QueueViewMBean queueViewMBean = getProxyToQueue("DLQ.auditConfigured");
|
||||
LOG.info("Queue " + queueViewMBean.getName() + ", size:" + queueViewMBean.getQueueSize());
|
||||
return queueViewMBean.getQueueSize() == 4;
|
||||
// expiry across queues is no longer seralised on a single timertask thread AMQ-6979
|
||||
return queueViewMBean.getQueueSize() >= 2;
|
||||
} catch (Exception expectedTillExpiry) {}
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue