ARTEMIS-1250 ClusteredMessageCounterTest.testNonDurableMessageAddedWithPaging fails

Before sending of messages to server 0 begins, the test
should wait until consumer is registered at RemoteQueueBindingImpl
on server 0. Otherwise some messages may not be rebalanced
to server 1.
This commit is contained in:
Erich Duda 2017-06-23 13:39:25 +02:00
parent e709fc366d
commit c5a25d3322
1 changed files with 3 additions and 1 deletions

View File

@ -127,10 +127,12 @@ public class ClusteredMessageCounterTest extends ClusterTestBase {
addConsumer(1, 1, "queue0", null);
waitForBindings(0, "queues", 1, 1, false);
System.out.println("sending.....");
send(0, "queues", numMsg, durable, null);
verifyReceiveAllOnSingleConsumer(true, numMsg, 1);
verifyReceiveAllOnSingleConsumer(true, 0, numMsg, 1);
QueueControl control = (QueueControl) servers[1].getManagementService().getResource(ResourceNames.QUEUE + "queue0");