NO-JIRA fixing intermittent test failure
This commit is contained in:
parent
158157260c
commit
1e89ce828c
|
@ -64,7 +64,7 @@ public class TransactionalSendTest extends ActiveMQTestBase {
|
|||
Queue q = (Queue) server.getPostOffice().getBinding(queueA).getBindable();
|
||||
Assert.assertEquals(0, getMessageCount(q));
|
||||
session.commit();
|
||||
Assert.assertEquals(getMessageCount(q), numMessages);
|
||||
Wait.assertEquals(numMessages, () -> getMessageCount(q));
|
||||
// now send some more
|
||||
for (int i = 0; i < numMessages; i++) {
|
||||
cp.send(session.createMessage(false));
|
||||
|
|
Loading…
Reference in New Issue