diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/server/LVQTest.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/server/LVQTest.java index 4c8d14a34d0..e4886e5aa8f 100644 --- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/server/LVQTest.java +++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/server/LVQTest.java @@ -167,11 +167,13 @@ public void testMultipleMessages() throws Exception { ClientMessage m = consumer.receive(1000); Assert.assertNotNull(m); m.acknowledge(); - Assert.assertEquals(m.getBodyBuffer().readString(), "m3"); + String val = m.getBodyBuffer().readString(); + Assert.assertTrue("1 or 3 =? " + val, "m1".equals(val) || "m3".equals(val)); m = consumer.receive(1000); Assert.assertNotNull(m); m.acknowledge(); - Assert.assertEquals(m.getBodyBuffer().readString(), "m4"); + val = m.getBodyBuffer().readString(); + Assert.assertTrue("2 or 4 =? " + val, "m2".equals(val) || "m4".equals(val)); } @Test