AMQ2102Test improvements

git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@933190 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Bosanac Dejan 2010-04-12 10:56:23 +00:00
parent 10e57c9e05
commit fc52e42636
1 changed files with 2 additions and 1 deletions

View File

@ -464,7 +464,7 @@ public class AMQ2102Test extends CombinationTestSupport implements UncaughtExcep
}
};
t.start();
Thread.sleep(2000);
master.waitUntilStarted();
masterUrl = master.getTransportConnectors().get(0).getConnectUri().toString();
debug("masterUrl: " + masterUrl);
@ -474,6 +474,7 @@ public class AMQ2102Test extends CombinationTestSupport implements UncaughtExcep
slave.addConnector("tcp://localhost:0");
slave.setMasterConnectorURI(masterUrl);
slave.start();
slave.waitUntilStarted();
}
public void tearDown() throws Exception {