activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gtu...@apache.org
Subject [3/5] git commit: give test more gc wiggle room - AMQ-4930
Date Sat, 30 Aug 2014 22:53:43 GMT
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/862f5035
Tree: http://git-wip-us.apache.org/repos/asf/activemq/tree/862f5035
Diff: http://git-wip-us.apache.org/repos/asf/activemq/diff/862f5035

Branch: refs/heads/trunk
Commit: 862f50355f8fc97814ffd44e76c23e14f781b473
Parents: 54e2e3b
Author: gtully <gary.tully@gmail.com>
Authored: Sat Aug 30 01:06:21 2014 +0100
Committer: gtully <gary.tully@gmail.com>
Committed: Sat Aug 30 01:06:21 2014 +0100

----------------------------------------------------------------------
 .../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/862f5035/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 e6bea2a..e65ad91 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)));
         }
     }
 


Mime
View raw message