activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r1347824 - /activemq/trunk/activemq-core/src/test/java/org/apache/activemq/usecases/LargeQueueSparseDeleteTest.java
Date Thu, 07 Jun 2012 22:59:47 GMT
Author: tabish
Date: Thu Jun  7 22:59:47 2012
New Revision: 1347824

URL: http://svn.apache.org/viewvc?rev=1347824&view=rev
Log:
On a loaded or very slow machine these can fail without a bit more time on the timeout.  Was
able to reproduce locally with video encoders running.

Modified:
    activemq/trunk/activemq-core/src/test/java/org/apache/activemq/usecases/LargeQueueSparseDeleteTest.java

Modified: activemq/trunk/activemq-core/src/test/java/org/apache/activemq/usecases/LargeQueueSparseDeleteTest.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/usecases/LargeQueueSparseDeleteTest.java?rev=1347824&r1=1347823&r2=1347824&view=diff
==============================================================================
--- activemq/trunk/activemq-core/src/test/java/org/apache/activemq/usecases/LargeQueueSparseDeleteTest.java
(original)
+++ activemq/trunk/activemq-core/src/test/java/org/apache/activemq/usecases/LargeQueueSparseDeleteTest.java
Thu Jun  7 22:59:47 2012
@@ -23,12 +23,12 @@ import javax.jms.MessageProducer;
 import javax.jms.Session;
 
 import org.apache.activemq.EmbeddedBrokerTestSupport;
-import org.apache.activemq.filter.NonCachedMessageEvaluationContext;
-import org.apache.activemq.broker.region.Queue;
 import org.apache.activemq.broker.ConnectionContext;
+import org.apache.activemq.broker.region.Queue;
+import org.apache.activemq.filter.NonCachedMessageEvaluationContext;
+import org.junit.Assert;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
-import org.junit.Assert;
 
 /**
  * This unit test creates a fixed size queue and moves the last message in the
@@ -59,7 +59,7 @@ public class LargeQueueSparseDeleteTest 
         final int QUEUE_SIZE = 30000;
         final String MOVE_TO_DESTINATION_NAME = getDestinationString()
                 + ".dest";
-        final long TEST_TIMEOUT = 6000;
+        final long TEST_TIMEOUT = 8000;
 
         // Populate a test queue with uniquely-identifiable messages.
         Connection conn = createConnection();
@@ -108,7 +108,7 @@ public class LargeQueueSparseDeleteTest 
         final int QUEUE_SIZE = 30000;
         final String MOVE_TO_DESTINATION_NAME = getDestinationString()
                 + ".dest";
-        final long TEST_TIMEOUT = 6000;
+        final long TEST_TIMEOUT = 8000;
 
         // Populate a test queue with uniquely-identifiable messages.
         Connection conn = createConnection();
@@ -154,7 +154,7 @@ public class LargeQueueSparseDeleteTest 
 
     public void testRemoveMessages() throws Exception {
         final int QUEUE_SIZE = 30000;
-        final long TEST_TIMEOUT = 6000;
+        final long TEST_TIMEOUT = 8000;
 
         // Populate a test queue with uniquely-identifiable messages.
         Connection conn = createConnection();



Mime
View raw message