diff --git a/activemq-spring/src/test/java/org/apache/bugs/LoadBalanceTest.java b/activemq-spring/src/test/java/org/apache/bugs/LoadBalanceTest.java index 0abcfbbf59..8b85b69fb7 100644 --- a/activemq-spring/src/test/java/org/apache/bugs/LoadBalanceTest.java +++ b/activemq-spring/src/test/java/org/apache/bugs/LoadBalanceTest.java @@ -311,6 +311,12 @@ public class LoadBalanceTest { + " and broker2 got " + broker2Count.get()); } + + + BrokerService broker = BrokerRegistry.getInstance().lookup("one"); + broker.stop(); + broker = BrokerRegistry.getInstance().lookup("two"); + broker.stop(); } // need to ensure broker bridge is alive before starting the consumer diff --git a/activemq-spring/src/test/resources/org/apache/bugs/loadbalancetest.xml b/activemq-spring/src/test/resources/org/apache/bugs/loadbalancetest.xml index 1e5be75ceb..64c84308d3 100644 --- a/activemq-spring/src/test/resources/org/apache/bugs/loadbalancetest.xml +++ b/activemq-spring/src/test/resources/org/apache/bugs/loadbalancetest.xml @@ -18,7 +18,9 @@ @@ -27,7 +29,9 @@ SYSTEM_PROPERTIES_MODE_OVERRIDE - + + +