From 4d37271c5ae8612e114e580b0bbfc9f442ec1b6c Mon Sep 17 00:00:00 2001 From: "Timothy A. Bish" Date: Mon, 14 Jan 2013 23:16:37 +0000 Subject: [PATCH] apply patch for: https://issues.apache.org/jira/browse/AMQ-4254 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 --- .../org/apache/activemq/config/BrokerXmlConfigStartTest.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/assembly/src/test/java/org/apache/activemq/config/BrokerXmlConfigStartTest.java b/assembly/src/test/java/org/apache/activemq/config/BrokerXmlConfigStartTest.java index c0d510d136..c12da4f54d 100755 --- a/assembly/src/test/java/org/apache/activemq/config/BrokerXmlConfigStartTest.java +++ b/assembly/src/test/java/org/apache/activemq/config/BrokerXmlConfigStartTest.java @@ -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);