From ef1a17e54829ec08d9fd4f30d972b9db470d0e85 Mon Sep 17 00:00:00 2001 From: Gary Tully Date: Thu, 21 Sep 2023 10:02:15 +0100 Subject: [PATCH] ARTEMIS-4432 remove unused commit count from the test --- .../openwire/PrefetchRedeliveryCountOpenwireTest.java | 2 -- 1 file changed, 2 deletions(-) diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/openwire/PrefetchRedeliveryCountOpenwireTest.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/openwire/PrefetchRedeliveryCountOpenwireTest.java index 80d5ca05df..1dc6105541 100644 --- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/openwire/PrefetchRedeliveryCountOpenwireTest.java +++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/openwire/PrefetchRedeliveryCountOpenwireTest.java @@ -231,7 +231,6 @@ public class PrefetchRedeliveryCountOpenwireTest extends OpenWireTestBase { exConn.close(); final int batch = numMessages; - AtomicInteger commits = new AtomicInteger(0); AtomicBoolean done = new AtomicBoolean(false); while (!done.get()) { // connection per batch attempt @@ -264,7 +263,6 @@ public class PrefetchRedeliveryCountOpenwireTest extends OpenWireTestBase { try { latch.countDown(); finalSession.commit(); - commits.incrementAndGet(); } catch (JMSException e) { }