diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/clientcrash/ClientTestBase.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/clientcrash/ClientTestBase.java index 0c9c0eb7e1..3ec5737489 100644 --- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/clientcrash/ClientTestBase.java +++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/clientcrash/ClientTestBase.java @@ -49,7 +49,7 @@ public abstract class ClientTestBase extends SpawnedTestBase { } protected void assertActiveSession(final int expectedActiveSession, long timeout) throws Exception { - Wait.assertEquals(expectedActiveSession, server.getSessions()::size, timeout); + Wait.assertEquals(expectedActiveSession, () -> server.getSessions().size(), timeout); } }