activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r1433209 - /activemq/trunk/assembly/src/test/java/org/apache/activemq/config/BrokerXmlConfigStartTest.java
Date Mon, 14 Jan 2013 23:16:37 GMT
Author: tabish
Date: Mon Jan 14 23:16:37 2013
New Revision: 1433209

URL: http://svn.apache.org/viewvc?rev=1433209&view=rev
Log:
apply patch for: https://issues.apache.org/jira/browse/AMQ-4254

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

Modified:
    activemq/trunk/assembly/src/test/java/org/apache/activemq/config/BrokerXmlConfigStartTest.java

Modified: activemq/trunk/assembly/src/test/java/org/apache/activemq/config/BrokerXmlConfigStartTest.java
URL: http://svn.apache.org/viewvc/activemq/trunk/assembly/src/test/java/org/apache/activemq/config/BrokerXmlConfigStartTest.java?rev=1433209&r1=1433208&r2=1433209&view=diff
==============================================================================
--- activemq/trunk/assembly/src/test/java/org/apache/activemq/config/BrokerXmlConfigStartTest.java
(original)
+++ activemq/trunk/assembly/src/test/java/org/apache/activemq/config/BrokerXmlConfigStartTest.java
Mon Jan 14 23:16:37 2013
@@ -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);



Mime
View raw message