From 862f50355f8fc97814ffd44e76c23e14f781b473 Mon Sep 17 00:00:00 2001 From: gtully Date: Sat, 30 Aug 2014 01:06:21 +0100 Subject: [PATCH] give test more gc wiggle room - AMQ-4930 --- .../src/test/java/org/apache/activemq/bugs/AMQ4930Test.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ4930Test.java b/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ4930Test.java index e6bea2a1f0..e65ad91f14 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ4930Test.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ4930Test.java @@ -117,7 +117,7 @@ public class AMQ4930Test extends TestCase { assertEquals("maxBrowsePageSize", maxBrowsePageSize, browsed.length); Runtime.getRuntime().gc(); Runtime.getRuntime().gc(); - assertTrue("No growth: " + Runtime.getRuntime().freeMemory()/1024, Runtime.getRuntime().freeMemory()/1024 >= (free - (free * 0.1))); + assertTrue("No growth: " + Runtime.getRuntime().freeMemory()/1024 + " >= " + (free - (free * 0.2)), Runtime.getRuntime().freeMemory()/1024 >= (free - (free * 0.2))); } }