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
This commit is contained in:
Gary Tully 2010-01-26 18:00:40 +00:00
parent 4b49834ef6
commit 8eeedce809
1 changed files with 3 additions and 1 deletions

View File

@ -444,9 +444,10 @@ public class AMQ2102Test extends CombinationTestSupport implements UncaughtExcep
String masterUrl; String masterUrl;
public void setUp() throws Exception { public void setUp() throws Exception {
setMaxTestTime(6 * 60 * 1000); setMaxTestTime(12 * 60 * 1000);
setAutoFail(true); setAutoFail(true);
super.setUp(); super.setUp();
master.setUseShutdownHook(false);
master.setBrokerName("Master"); master.setBrokerName("Master");
master.addConnector("tcp://localhost:0"); master.addConnector("tcp://localhost:0");
master.deleteAllMessages(); master.deleteAllMessages();
@ -467,6 +468,7 @@ public class AMQ2102Test extends CombinationTestSupport implements UncaughtExcep
masterUrl = master.getTransportConnectors().get(0).getConnectUri().toString(); masterUrl = master.getTransportConnectors().get(0).getConnectUri().toString();
debug("masterUrl: " + masterUrl); debug("masterUrl: " + masterUrl);
slave.setUseShutdownHook(false);
slave.setBrokerName("Slave"); slave.setBrokerName("Slave");
slave.deleteAllMessages(); slave.deleteAllMessages();
slave.addConnector("tcp://localhost:0"); slave.addConnector("tcp://localhost:0");