From 3913c17c8de942ee7be8dbe74c5ac395f5a30a79 Mon Sep 17 00:00:00 2001 From: Clebert Suconic Date: Mon, 7 Jun 2021 13:05:34 -0400 Subject: [PATCH] NO-JIRA fixing intermittent failure on test --- .../artemis/tests/integration/management/QueueControlTest.java | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/management/QueueControlTest.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/management/QueueControlTest.java index 7ff689793e..3665245800 100644 --- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/management/QueueControlTest.java +++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/management/QueueControlTest.java @@ -478,6 +478,7 @@ public class QueueControlTest extends ManagementTestBase { long beforeSend = System.currentTimeMillis(); ClientProducer producer = session.createProducer(address); producer.send(session.createMessage(false).putStringProperty("x", "valueX").putStringProperty("y", "valueY")); + Wait.assertEquals(1, queueControl::getMessageCount); long firstMessageTimestamp = queueControl.getFirstMessageTimestamp(); assertTrue(beforeSend <= firstMessageTimestamp);