give test more gc wiggle room - AMQ-4930

This commit is contained in:
gtully 2014-08-30 01:06:21 +01:00
parent 54e2e3bef2
commit 862f50355f
1 changed files with 1 additions and 1 deletions

View File

@ -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)));
}
}