You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by ha...@apache.org on 2014/12/18 03:41:46 UTC

[16/17] activemq git commit: give test more gc wiggle room - AMQ-4930

give test more gc wiggle room - AMQ-4930


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

Branch: refs/heads/activemq-5.10.x
Commit: 6bdf4f8b669645ed5333b45ac967d8af17503bee
Parents: 4349e77
Author: gtully <ga...@gmail.com>
Authored: Sat Aug 30 01:06:21 2014 +0100
Committer: Hadrian Zbarcea <ha...@apache.org>
Committed: Wed Dec 17 19:52:48 2014 -0500

----------------------------------------------------------------------
 .../src/test/java/org/apache/activemq/bugs/AMQ4930Test.java        | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/activemq/blob/6bdf4f8b/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ4930Test.java
----------------------------------------------------------------------
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 f75eae3..7572850 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
@@ -105,7 +105,7 @@ public class AMQ4930Test extends TestCase {
             underTest.browse();
             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)));
         }
     }