From 8afa3d8a418f224111050cee2a77204f37bb9fd3 Mon Sep 17 00:00:00 2001 From: Clebert Suconic Date: Tue, 19 Nov 2024 12:31:06 -0500 Subject: [PATCH] ARTEMIS-5156 Wait.assertEquals on messageCount --- .../artemis/tests/soak/interruptlm/LargeMessageFrozenTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/soak-tests/src/test/java/org/apache/activemq/artemis/tests/soak/interruptlm/LargeMessageFrozenTest.java b/tests/soak-tests/src/test/java/org/apache/activemq/artemis/tests/soak/interruptlm/LargeMessageFrozenTest.java index 72f2491a5f1..d6ef83a7be9 100644 --- a/tests/soak-tests/src/test/java/org/apache/activemq/artemis/tests/soak/interruptlm/LargeMessageFrozenTest.java +++ b/tests/soak-tests/src/test/java/org/apache/activemq/artemis/tests/soak/interruptlm/LargeMessageFrozenTest.java @@ -340,7 +340,7 @@ public void testFreezeAutoAck(String protocol) throws Exception { assertNull(consumer.receiveNoWait()); } - assertEquals(0L, serverQueue.getMessageCount()); + Wait.assertEquals(0L, serverQueue::getMessageCount, 5000, 100); Wait.assertEquals(0, () -> { System.gc();