mirror of https://github.com/apache/activemq.git
give test more gc wiggle room - AMQ-4930
This commit is contained in:
parent
54e2e3bef2
commit
862f50355f
|
@ -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)));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue