From ff3bad1ae985fc209ffc76e6bb1939e6f90a0499 Mon Sep 17 00:00:00 2001 From: gtully Date: Mon, 14 Oct 2013 17:04:58 +0100 Subject: [PATCH] https://issues.apache.org/jira/browse/AMQ-4798 - reflect new 1g default so set expected value in test --- .../src/test/java/org/apache/activemq/bugs/AMQ2314Test.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ2314Test.java b/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ2314Test.java index e34dc0c87a..369385c8b3 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ2314Test.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ2314Test.java @@ -138,7 +138,7 @@ public class AMQ2314Test extends CombinationTestSupport { consumingThread.join(); connection.close(); - LOG.info("Subscrition Usage: " + tempUsageBySubscription + ", endUsage: " + LOG.info("Subscription Usage: " + tempUsageBySubscription + ", endUsage: " + broker.getSystemUsage().getTempUsage().getUsage()); assertTrue("temp usage decreased with removed sub", Wait.waitFor(new Wait.Condition(){ @@ -157,6 +157,7 @@ public class AMQ2314Test extends CombinationTestSupport { broker.setUseJmx(true); broker.setAdvisorySupport(false); broker.setDeleteAllMessagesOnStartup(true); + broker.getSystemUsage().getMemoryUsage().setLimit(1024l*1024*64); broker.addConnector("tcp://localhost:0").setName("Default"); broker.start();