From 75d61f606b06c841c99cf433d8660b0c396aa9bb Mon Sep 17 00:00:00 2001 From: Francesco Nigro Date: Fri, 11 May 2018 11:44:19 +0200 Subject: [PATCH] NO-JIRA Fixing assertActiveSession on ClientCrashTest::testCrashClient2 --- .../tests/integration/clientcrash/ClientCrashTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/clientcrash/ClientCrashTest.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/clientcrash/ClientCrashTest.java index 7ce883485e..e9f282e75f 100644 --- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/clientcrash/ClientCrashTest.java +++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/clientcrash/ClientCrashTest.java @@ -155,10 +155,10 @@ public class ClientCrashTest extends ClientTestBase { System.out.println("VM Exited"); - long timeout = ClientCrashTest.CONNECTION_TTL + ClientCrashTest.PING_PERIOD + 10000; + long timeout = ClientCrashTest.CONNECTION_TTL + ClientCrashTest.PING_PERIOD + 10000L; assertActiveConnections(1, timeout); - assertActiveSession(2, timeout); + assertActiveSession(1, timeout); ClientConsumer consumer = session.createConsumer(ClientCrashTest.QUEUE2);