test improvements

git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1080194 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Bosanac Dejan 2011-03-10 11:58:33 +00:00
parent b6672d12b2
commit 358ace29f5
1 changed files with 5 additions and 0 deletions

View File

@ -32,6 +32,7 @@ import org.apache.activemq.advisory.ConsumerListener;
import org.apache.activemq.broker.BrokerFactory;
import org.apache.activemq.broker.BrokerService;
import org.apache.activemq.command.ActiveMQQueue;
import org.apache.activemq.transport.http.WaitForJettyListener;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
@ -221,6 +222,8 @@ public class AMQ2764Test extends TestCase {
if (brokerOne == null) {
brokerOne = createFirstBroker();
brokerOne.start();
brokerOne.waitUntilStarted();
WaitForJettyListener.waitForJettySocketToAccept("http://localhost:61616");
}
}
@ -235,6 +238,8 @@ public class AMQ2764Test extends TestCase {
if (brokerTwo == null) {
brokerTwo = createSecondBroker();
brokerTwo.start();
brokerTwo.waitUntilStarted();
WaitForJettyListener.waitForJettySocketToAccept("http://localhost:61617");
}
}