From 3285be60ede1ee6cf377d4d4eeca6fbff79d5dec Mon Sep 17 00:00:00 2001 From: "Christopher L. Shannon (cshannon)" Date: Wed, 15 Nov 2017 09:21:44 -0500 Subject: [PATCH] (AMQ-6858) - test fix (cherry picked from commit 2e3a7f6114fae1ffb9c19ee4af2f4541fdfc238e) --- .../activemq/network/DurableFiveBrokerNetworkBridgeTest.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/network/DurableFiveBrokerNetworkBridgeTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/network/DurableFiveBrokerNetworkBridgeTest.java index 2d8dc03fb3..5bbd8b8010 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/network/DurableFiveBrokerNetworkBridgeTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/network/DurableFiveBrokerNetworkBridgeTest.java @@ -74,8 +74,6 @@ public class DurableFiveBrokerNetworkBridgeTest extends JmsMultipleBrokersTestSu } protected void testDurablePropagationBrokerRestart() throws Exception { - deletePersistentMessagesOnStartup = true; - // Setup broker networks bridgeBrokers("Broker_A_A", "Broker_B_B"); bridgeBrokers("Broker_B_B", "Broker_C_C"); @@ -665,6 +663,7 @@ public class DurableFiveBrokerNetworkBridgeTest extends JmsMultipleBrokersTestSu public void setUp() throws Exception { super.setAutoFail(true); super.setUp(); + deletePersistentMessagesOnStartup = true; String options = new String("?persistent=true&useJmx=false"); createBroker(new URI("broker:(tcp://localhost:61616)/Broker_A_A" + options)); createBroker(new URI("broker:(tcp://localhost:61617)/Broker_B_B" + options));