From 6205a0f9c83df3d910dc7137f02bf1d01e286572 Mon Sep 17 00:00:00 2001 From: Gary Tully Date: Fri, 29 Jan 2010 10:07:37 +0000 Subject: [PATCH] push out the hang threshold for loaded/slow machines - intermittent failure git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@904444 13f79535-47bb-0310-9956-ffa450edef68 --- .../java/org/apache/activemq/bugs/AMQ2413Test.java | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/activemq-core/src/test/java/org/apache/activemq/bugs/AMQ2413Test.java b/activemq-core/src/test/java/org/apache/activemq/bugs/AMQ2413Test.java index d32446f08c..6dea1b2753 100644 --- a/activemq-core/src/test/java/org/apache/activemq/bugs/AMQ2413Test.java +++ b/activemq-core/src/test/java/org/apache/activemq/bugs/AMQ2413Test.java @@ -18,7 +18,6 @@ package org.apache.activemq.bugs; import java.io.File; import java.util.ArrayList; -import java.util.concurrent.CountDownLatch; import java.util.concurrent.Semaphore; import java.util.concurrent.TimeUnit; import java.util.concurrent.TimeoutException; @@ -35,6 +34,8 @@ import javax.jms.MessageListener; import javax.jms.MessageProducer; import javax.jms.Session; +import junit.framework.Test; + import org.apache.activemq.ActiveMQConnection; import org.apache.activemq.ActiveMQConnectionFactory; import org.apache.activemq.CombinationTestSupport; @@ -43,18 +44,11 @@ import org.apache.activemq.broker.region.policy.PolicyEntry; import org.apache.activemq.broker.region.policy.PolicyMap; import org.apache.activemq.broker.region.policy.VMPendingQueueMessageStoragePolicy; -import junit.framework.Test; -import junit.framework.TestCase; - -/** - * An AMQ-1282 Test - * - */ public class AMQ2413Test extends CombinationTestSupport implements MessageListener { BrokerService broker; private ActiveMQConnectionFactory factory; - private static final int HANG_THRESHOLD = 5; + private static final int HANG_THRESHOLD = 30; private static final int SEND_COUNT = 10000; private static final int RECEIVER_THINK_TIME = 1; private static final int CONSUMER_COUNT = 1;