order is not guarenteed with multiple consumers, just validate quantity

git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1245408 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Gary Tully 2012-02-17 11:37:12 +00:00
parent 896de22bf7
commit 9f0a673e36
1 changed files with 2 additions and 1 deletions

View File

@ -42,7 +42,8 @@ public class TwoBrokerQueueSendReceiveTest extends TwoBrokerTopicSendReceiveTes
onMessage(consumer.receive(10000));
consumer.close();
}
this.assertMessagesAreReceived();
waitForMessagesToBeDelivered();
assertEquals("Got all messages", data.length, messages.size());
BrokerService broker = (BrokerService) brokers.get("receiver");
final DemandForwardingBridgeSupport bridge = (DemandForwardingBridgeSupport) broker.getNetworkConnectors().get(0).activeBridges().toArray()[0];