You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by jb...@apache.org on 2020/11/23 05:26:24 UTC
[activemq] branch master updated: Increase AMQ6815Test timeout
(failing on slow machine like Jenkins)
This is an automated email from the ASF dual-hosted git repository.
jbonofre pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/activemq.git
The following commit(s) were added to refs/heads/master by this push:
new 5c7e23a Increase AMQ6815Test timeout (failing on slow machine like Jenkins)
5c7e23a is described below
commit 5c7e23ac90662676515170ee7b0ed6c727e11618
Author: jbonofre <jb...@apache.org>
AuthorDate: Mon Nov 23 06:26:04 2020 +0100
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 d8f3598..ad278be 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 {