From 5df57234d19bee8b4415edf37339a916f0323e4c Mon Sep 17 00:00:00 2001 From: Clebert Suconic Date: Tue, 12 Jan 2016 08:16:17 -0500 Subject: [PATCH] fixing thread leakage from test --- .../tests/integration/server/SuppliedThreadPoolTest.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/server/SuppliedThreadPoolTest.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/server/SuppliedThreadPoolTest.java index 2e9accf56a..8dda21595c 100644 --- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/server/SuppliedThreadPoolTest.java +++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/server/SuppliedThreadPoolTest.java @@ -55,6 +55,9 @@ public class SuppliedThreadPoolTest extends ActiveMQTestBase { if (server.isActive()) { server.stop(); } + serviceRegistry.getExecutorService().shutdown(); + serviceRegistry.getScheduledExecutorService().shutdown(); + super.tearDown(); } @Test