NO-JIRA fixing intermittent test failure

There's no semantic change here, just a test fix
This commit is contained in:
Clebert Suconic 2017-08-23 10:48:46 -04:00
parent a2602cb52b
commit a85e75daa1
1 changed files with 8 additions and 0 deletions

View File

@ -259,6 +259,14 @@ public class MessageRedistributionTest extends ClusterTestBase {
ClientProducer producer0 = sess0.createProducer("queues.testaddress"); ClientProducer producer0 = sess0.createProducer("queues.testaddress");
waitForBindings(0, "queues.testaddress", 1, 1, true);
waitForBindings(1, "queues.testaddress", 1, 1, true);
waitForBindings(2, "queues.testaddress", 1, 1, true);
waitForBindings(0, "queues.testaddress", 2, 2, false);
waitForBindings(1, "queues.testaddress", 2, 2, false);
waitForBindings(2, "queues.testaddress", 2, 2, false);
final int NUMBER_OF_MESSAGES = 1000; final int NUMBER_OF_MESSAGES = 1000;
for (int i = 0; i < 1000; i++) { for (int i = 0; i < 1000; i++) {