mirror of https://github.com/apache/activemq.git
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
This commit is contained in:
parent
15598081a1
commit
4d37271c5a
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue