You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by gt...@apache.org on 2013/01/10 17:51:12 UTC

svn commit: r1431494 - /activemq/trunk/activemq-core/src/test/java/org/apache/activemq/store/MessagePriorityTest.java

Author: gtully
Date: Thu Jan 10 16:51:12 2013
New Revision: 1431494

URL: http://svn.apache.org/viewvc?rev=1431494&view=rev
Log:
derby on virtual hw can be very slow, so a query with an intentionally large backlog can take some time

Modified:
    activemq/trunk/activemq-core/src/test/java/org/apache/activemq/store/MessagePriorityTest.java

Modified: activemq/trunk/activemq-core/src/test/java/org/apache/activemq/store/MessagePriorityTest.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/store/MessagePriorityTest.java?rev=1431494&r1=1431493&r2=1431494&view=diff
==============================================================================
--- activemq/trunk/activemq-core/src/test/java/org/apache/activemq/store/MessagePriorityTest.java (original)
+++ activemq/trunk/activemq-core/src/test/java/org/apache/activemq/store/MessagePriorityTest.java Thu Jan 10 16:51:12 2013
@@ -575,8 +575,9 @@ abstract public class MessagePriorityTes
         LOG.info("Starting consumer...");
         MessageConsumer queueConsumer = sess.createConsumer(queue);
         for (int i = 0; i < 500; i++) {
-            Message msg = queueConsumer.receive(5000);
+            Message msg = queueConsumer.receive(20000);
             LOG.debug("received i=" + i + ", " + (msg!=null? msg.getJMSMessageID() : null));
+            if (msg == null) dumpAllThreads("backlog");
             assertNotNull("Message " + i + " was null", msg);
             assertEquals("Message " + i + " has wrong priority", i < 10 ? HIGH_PRI : LOW_PRI, msg.getJMSPriority());
         }