From 8eeedce8090c0fb90c674b2069e667bdac7a1fe1 Mon Sep 17 00:00:00 2001 From: Gary Tully Date: Tue, 26 Jan 2010 18:00:40 +0000 Subject: [PATCH] dsiable shutdown hook as it causes autofail exit to hang which defeats the purpos - want a stack trace if it hangs again git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@903344 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/test/java/org/apache/activemq/bugs/AMQ2102Test.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/activemq-core/src/test/java/org/apache/activemq/bugs/AMQ2102Test.java b/activemq-core/src/test/java/org/apache/activemq/bugs/AMQ2102Test.java index 0a81ee87ae..c89c9c96f5 100644 --- a/activemq-core/src/test/java/org/apache/activemq/bugs/AMQ2102Test.java +++ b/activemq-core/src/test/java/org/apache/activemq/bugs/AMQ2102Test.java @@ -444,9 +444,10 @@ public class AMQ2102Test extends CombinationTestSupport implements UncaughtExcep String masterUrl; public void setUp() throws Exception { - setMaxTestTime(6 * 60 * 1000); + setMaxTestTime(12 * 60 * 1000); setAutoFail(true); super.setUp(); + master.setUseShutdownHook(false); master.setBrokerName("Master"); master.addConnector("tcp://localhost:0"); master.deleteAllMessages(); @@ -467,6 +468,7 @@ public class AMQ2102Test extends CombinationTestSupport implements UncaughtExcep masterUrl = master.getTransportConnectors().get(0).getConnectUri().toString(); debug("masterUrl: " + masterUrl); + slave.setUseShutdownHook(false); slave.setBrokerName("Slave"); slave.deleteAllMessages(); slave.addConnector("tcp://localhost:0");