Add call to broker.waitUntilStopped() to try to make this pass more often. 

git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1433209 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Timothy A. Bish 2013-01-14 23:16:37 +00:00
parent 15598081a1
commit 4d37271c5a
1 changed files with 3 additions and 2 deletions

View File

@ -86,7 +86,7 @@ public class BrokerXmlConfigStartTest {
try {
for (TransportConnector transport : broker.getTransportConnectors()) {
final URI UriToConnectTo = URISupport.removeQuery(transport.getConnectUri());
if (UriToConnectTo.getScheme().startsWith("stomp")) {
LOG.info("validating alive with connection to: " + UriToConnectTo);
StompConnection connection = new StompConnection();
@ -108,6 +108,7 @@ public class BrokerXmlConfigStartTest {
} finally {
if (broker != null) {
broker.stop();
broker.waitUntilStopped();
broker = null;
}
}
@ -122,7 +123,7 @@ public class BrokerXmlConfigStartTest {
secProps = new Properties();
secProps.load(new FileInputStream(new File("target/conf/credentials.properties")));
}
@After
public void tearDown() throws Exception {
TimeUnit.SECONDS.sleep(1);