NO-JIRA fixing Intermittent failure on test

This commit is contained in:
Clebert Suconic 2020-06-22 20:42:25 -04:00
parent d5d7c3d469
commit c54ff4c859
1 changed files with 3 additions and 3 deletions

View File

@ -240,14 +240,14 @@ public class AutoCreateDeadLetterResourcesTest extends ActiveMQTestBase {
ClientProducer producer = addClientProducer(session.createProducer(moveFromAddress));
producer.send(session.createMessage(true));
producer.close();
Wait.assertEquals(1L, server.locateQueue(moveFromQueue)::getMessageCount, 2000, 100);
server.locateQueue(moveFromQueue).moveReferences(null, addressA, null);
Wait.assertEquals(1L, () -> server.locateQueue(queueA).getMessageCount(), 2000, 100);
Wait.assertEquals(1L, server.locateQueue(queueA)::getMessageCount, 2000, 100);
triggerDlaDelivery();
Wait.assertTrue(() -> server.locateQueue(dlqName).getMessageCount() == 1, 2000, 100);
Wait.assertEquals(1L, server.locateQueue(dlqName)::getMessageCount, 2000, 100);
ClientConsumer consumer = session.createConsumer(dlqName);
session.start();