activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gtu...@apache.org
Subject git commit: https://issues.apache.org/jira/browse/AMQ-5087 - fix up test use of initial delay
Date Tue, 11 Mar 2014 12:37:47 GMT
Repository: activemq
Updated Branches:
  refs/heads/trunk 87420cc45 -> a3a41dae3


https://issues.apache.org/jira/browse/AMQ-5087 - fix up test use of initial delay


Project: http://git-wip-us.apache.org/repos/asf/activemq/repo
Commit: http://git-wip-us.apache.org/repos/asf/activemq/commit/a3a41dae
Tree: http://git-wip-us.apache.org/repos/asf/activemq/tree/a3a41dae
Diff: http://git-wip-us.apache.org/repos/asf/activemq/diff/a3a41dae

Branch: refs/heads/trunk
Commit: a3a41dae3711f01e13110ed266e9e825b710e986
Parents: 87420cc
Author: gtully <gary.tully@gmail.com>
Authored: Tue Mar 11 12:36:33 2014 +0000
Committer: gtully <gary.tully@gmail.com>
Committed: Tue Mar 11 12:37:31 2014 +0000

----------------------------------------------------------------------
 .../java/org/apache/activemq/broker/BrokerRedeliveryTest.java     | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/activemq/blob/a3a41dae/activemq-unit-tests/src/test/java/org/apache/activemq/broker/BrokerRedeliveryTest.java
----------------------------------------------------------------------
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 1bec479..1fc7a6a 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);
     }


Mime
View raw message