diff --git a/activemq-core/src/test/java/org/apache/activemq/broker/ft/QueueMasterSlaveTest.java b/activemq-core/src/test/java/org/apache/activemq/broker/ft/QueueMasterSlaveTest.java index 97713ed6be..752788e998 100644 --- a/activemq-core/src/test/java/org/apache/activemq/broker/ft/QueueMasterSlaveTest.java +++ b/activemq-core/src/test/java/org/apache/activemq/broker/ft/QueueMasterSlaveTest.java @@ -74,7 +74,8 @@ public class QueueMasterSlaveTest extends JmsTopicSendReceiveWithTwoConnectionsT protected void tearDown() throws Exception { super.tearDown(); - + master.stop(); + master.waitUntilStopped(); slaveStarted.await(5, TimeUnit.SECONDS); BrokerService brokerService = slave.get(); if( brokerService!=null ) {