From 5c7e23ac90662676515170ee7b0ed6c727e11618 Mon Sep 17 00:00:00 2001 From: jbonofre Date: Mon, 23 Nov 2020 06:26:04 +0100 Subject: [PATCH] Increase AMQ6815Test timeout (failing on slow machine like Jenkins) --- .../src/test/java/org/apache/activemq/bugs/AMQ6815Test.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ6815Test.java b/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ6815Test.java index d8f3598ae6..ad278be0bf 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ6815Test.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ6815Test.java @@ -71,7 +71,7 @@ public class AMQ6815Test { brokerService.stop(); } - @Test(timeout = 240000) + @Test(timeout = 480000) public void testHeapUsage() throws Exception { Runtime.getRuntime().gc(); final long initUsedMemory = Runtime.getRuntime().totalMemory() - Runtime.getRuntime().freeMemory(); @@ -79,7 +79,7 @@ public class AMQ6815Test { Runtime.getRuntime().gc(); long usedMem = Runtime.getRuntime().totalMemory() - Runtime.getRuntime().freeMemory() - initUsedMemory; LOG.info("Mem in use: " + usedMem/1024 + "K"); - assertTrue("Used Mem reasonable " + usedMem, usedMem < 5*MEM_LIMIT); + assertTrue("Used Mem reasonable " + usedMem, usedMem < 5 * MEM_LIMIT); } protected void sendMessages(int count) throws JMSException {