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:
parent
e709fc366d
commit
c5a25d3322
|
@ -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");
|
||||
|
||||
|
|
Loading…
Reference in New Issue