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 869e068d87e..c7c6848402a 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 void testForceDeleteAddressWhenExistsQueues() throws Exception { 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