Fixing failing tests after sync changes
This commit is contained in:
parent
5d829e5135
commit
4a6dc4f7ba
|
@ -334,12 +334,11 @@ public class AddressControlTest extends ManagementTestBase {
|
||||||
|
|
||||||
session.createQueue(address, RoutingType.ANYCAST, address);
|
session.createQueue(address, RoutingType.ANYCAST, address);
|
||||||
producer.send(session.createMessage(false));
|
producer.send(session.createMessage(false));
|
||||||
assertEquals(1, addressControl.getMessageCount());
|
assertTrue(Wait.waitFor(() -> addressControl.getMessageCount() == 1, 2000, 100));
|
||||||
|
|
||||||
session.createQueue(address, RoutingType.ANYCAST, address.concat('2'));
|
session.createQueue(address, RoutingType.ANYCAST, address.concat('2'));
|
||||||
producer.send(session.createMessage(false));
|
producer.send(session.createMessage(false));
|
||||||
Wait.waitFor(() -> addressControl.getMessageCount() == 2);
|
assertTrue(Wait.waitFor(() -> addressControl.getMessageCount() == 2, 2000, 100));
|
||||||
assertEquals(2, addressControl.getMessageCount());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
|
|
@ -1495,8 +1495,8 @@ public class StompTest extends StompTestBase {
|
||||||
|
|
||||||
send(conn, addressA, null, "Hello World!", true, RoutingType.ANYCAST);
|
send(conn, addressA, null, "Hello World!", true, RoutingType.ANYCAST);
|
||||||
|
|
||||||
assertEquals(1, activeMQServer.locateQueue(SimpleString.toSimpleString(queueA)).getMessageCount() + activeMQServer.locateQueue(SimpleString.toSimpleString(queueB)).getMessageCount());
|
assertTrue(Wait.waitFor(() -> activeMQServer.locateQueue(SimpleString.toSimpleString(queueA)).getMessageCount() + activeMQServer.locateQueue(SimpleString.toSimpleString(queueB)).getMessageCount() == 1, 2000, 100));
|
||||||
assertEquals(0, activeMQServer.locateQueue(SimpleString.toSimpleString(queueC)).getMessageCount());
|
assertTrue(Wait.waitFor(() -> activeMQServer.locateQueue(SimpleString.toSimpleString(queueC)).getMessageCount() == 0, 2000, 100));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
@ -1517,8 +1517,8 @@ public class StompTest extends StompTestBase {
|
||||||
|
|
||||||
send(conn, addressA, null, "Hello World!", true, RoutingType.MULTICAST);
|
send(conn, addressA, null, "Hello World!", true, RoutingType.MULTICAST);
|
||||||
|
|
||||||
assertEquals(0, activeMQServer.locateQueue(SimpleString.toSimpleString(queueA)).getMessageCount());
|
assertTrue(Wait.waitFor(() -> activeMQServer.locateQueue(SimpleString.toSimpleString(queueA)).getMessageCount() == 0, 2000, 100));
|
||||||
assertEquals(2, activeMQServer.locateQueue(SimpleString.toSimpleString(queueC)).getMessageCount() + activeMQServer.locateQueue(SimpleString.toSimpleString(queueB)).getMessageCount());
|
assertTrue(Wait.waitFor(() -> activeMQServer.locateQueue(SimpleString.toSimpleString(queueC)).getMessageCount() + activeMQServer.locateQueue(SimpleString.toSimpleString(queueB)).getMessageCount() == 2, 2000, 100));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
@ -1541,7 +1541,7 @@ public class StompTest extends StompTestBase {
|
||||||
|
|
||||||
send(conn, addressA, null, "Hello World!", true);
|
send(conn, addressA, null, "Hello World!", true);
|
||||||
|
|
||||||
assertEquals(1, activeMQServer.locateQueue(SimpleString.toSimpleString(queueA)).getMessageCount() + activeMQServer.locateQueue(SimpleString.toSimpleString(queueB)).getMessageCount());
|
assertTrue(Wait.waitFor(() -> activeMQServer.locateQueue(SimpleString.toSimpleString(queueA)).getMessageCount() + activeMQServer.locateQueue(SimpleString.toSimpleString(queueB)).getMessageCount() == 1, 2000, 100));
|
||||||
assertEquals(2, activeMQServer.locateQueue(SimpleString.toSimpleString(queueC)).getMessageCount() + activeMQServer.locateQueue(SimpleString.toSimpleString(queueD)).getMessageCount());
|
assertTrue(Wait.waitFor(() -> activeMQServer.locateQueue(SimpleString.toSimpleString(queueC)).getMessageCount() + activeMQServer.locateQueue(SimpleString.toSimpleString(queueD)).getMessageCount() == 2, 2000, 100));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue