From a3a41dae3711f01e13110ed266e9e825b710e986 Mon Sep 17 00:00:00 2001 From: gtully Date: Tue, 11 Mar 2014 12:36:33 +0000 Subject: [PATCH] https://issues.apache.org/jira/browse/AMQ-5087 - fix up test use of initial delay --- .../java/org/apache/activemq/broker/BrokerRedeliveryTest.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/broker/BrokerRedeliveryTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/broker/BrokerRedeliveryTest.java index 1bec47940c..1fc7a6aeb2 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/broker/BrokerRedeliveryTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/broker/BrokerRedeliveryTest.java @@ -40,7 +40,7 @@ public class BrokerRedeliveryTest extends org.apache.activemq.TestSupport { final ActiveMQQueue destination = new ActiveMQQueue("Redelivery"); final String data = "hi"; final long redeliveryDelayMillis = 2000; - final long initialRedeliveryDelayMillis = 4000; + long initialRedeliveryDelayMillis = 4000; int maxBrokerRedeliveries = 2; public void testScheduledRedelivery() throws Exception { @@ -48,6 +48,7 @@ public class BrokerRedeliveryTest extends org.apache.activemq.TestSupport { } public void testInfiniteRedelivery() throws Exception { + initialRedeliveryDelayMillis = redeliveryDelayMillis; maxBrokerRedeliveries = RedeliveryPolicy.NO_MAXIMUM_REDELIVERIES; doTestScheduledRedelivery(RedeliveryPolicy.DEFAULT_MAXIMUM_REDELIVERIES + 1, false); }