diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cli/AddressCommandTest.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cli/AddressCommandTest.java index 869e068d87..c7c6848402 100644 --- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cli/AddressCommandTest.java +++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cli/AddressCommandTest.java @@ -143,7 +143,7 @@ public class AddressCommandTest extends JMSTestBase { deleteAddress.setForce(true); deleteAddress.execute(new ActionContext(System.in, new PrintStream(output), new PrintStream(error))); checkExecutionPassed(deleteAddress); - Wait.assertEquals(null, () -> server.locateQueue(queueName)); + Wait.assertTrue(() -> server.locateQueue(queueName) == null); } @Test