activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gtu...@apache.org
Subject svn commit: r1431494 - /activemq/trunk/activemq-core/src/test/java/org/apache/activemq/store/MessagePriorityTest.java
Date Thu, 10 Jan 2013 16:51:12 GMT
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());
         }



Mime
View raw message