mirror of
https://github.com/apache/activemq.git
synced 2025-02-17 07:24:51 +00:00
harden to address intermittent ci failure
This commit is contained in:
parent
29fb4a4b3f
commit
ed1622dd34
@ -427,6 +427,15 @@ public class TwoBrokerVirtualTopicSelectorAwareForwardingTest extends
|
|||||||
// assert broker A stats
|
// assert broker A stats
|
||||||
assertEquals(30, brokerA.getDestination(new ActiveMQQueue("Consumer.B.VirtualTopic.tempTopic"))
|
assertEquals(30, brokerA.getDestination(new ActiveMQQueue("Consumer.B.VirtualTopic.tempTopic"))
|
||||||
.getDestinationStatistics().getEnqueues().getCount());
|
.getDestinationStatistics().getEnqueues().getCount());
|
||||||
|
|
||||||
|
Wait.waitFor(new Wait.Condition() {
|
||||||
|
@Override
|
||||||
|
public boolean isSatisified() throws Exception {
|
||||||
|
return brokerA.getDestination(new ActiveMQQueue("Consumer.B.VirtualTopic.tempTopic"))
|
||||||
|
.getDestinationStatistics().getEnqueues().getCount() == 30;
|
||||||
|
}
|
||||||
|
}, 5000);
|
||||||
|
|
||||||
assertEquals(30, brokerA.getDestination(new ActiveMQQueue("Consumer.B.VirtualTopic.tempTopic"))
|
assertEquals(30, brokerA.getDestination(new ActiveMQQueue("Consumer.B.VirtualTopic.tempTopic"))
|
||||||
.getDestinationStatistics().getDequeues().getCount());
|
.getDestinationStatistics().getDequeues().getCount());
|
||||||
assertEquals(0, brokerA.getDestination(new ActiveMQQueue("Consumer.B.VirtualTopic.tempTopic"))
|
assertEquals(0, brokerA.getDestination(new ActiveMQQueue("Consumer.B.VirtualTopic.tempTopic"))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user