You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by gt...@apache.org on 2015/06/17 15:42:01 UTC

[3/3] activemq git commit: disable periodic expiry b/c that will page in and effect the usage assertions if the test lasts for more than 30s. read ci

disable periodic expiry b/c that will page in and effect the usage assertions if the test lasts for more than 30s. read ci


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

Branch: refs/heads/master
Commit: d5c25c027b42000520ffa68a64fde75b1d4a1bf7
Parents: 38f7857
Author: gtully <ga...@gmail.com>
Authored: Wed Jun 17 14:29:28 2015 +0100
Committer: gtully <ga...@gmail.com>
Committed: Wed Jun 17 14:33:32 2015 +0100

----------------------------------------------------------------------
 .../test/java/org/apache/activemq/usecases/MemoryLimitTest.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/activemq/blob/d5c25c02/activemq-unit-tests/src/test/java/org/apache/activemq/usecases/MemoryLimitTest.java
----------------------------------------------------------------------
diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/usecases/MemoryLimitTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/usecases/MemoryLimitTest.java
index 3e3dcff..d2b1be8 100644
--- a/activemq-unit-tests/src/test/java/org/apache/activemq/usecases/MemoryLimitTest.java
+++ b/activemq-unit-tests/src/test/java/org/apache/activemq/usecases/MemoryLimitTest.java
@@ -66,8 +66,8 @@ public class MemoryLimitTest extends TestSupport {
 
         PolicyMap policyMap = new PolicyMap();
         PolicyEntry policyEntry = new PolicyEntry();
+        policyEntry.setExpireMessagesPeriod(0); // when this fires it will consume 2*pageSize mem which will throw the test
         policyEntry.setProducerFlowControl(false);
-        policyEntry.setExpireMessagesPeriod(0);
         policyMap.put(new ActiveMQQueue(">"), policyEntry);
         broker.setDestinationPolicy(policyMap);