activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gtu...@apache.org
Subject svn commit: r796694 - /activemq/trunk/activemq-core/src/test/java/org/apache/activemq/JMSConsumerTest.java
Date Wed, 22 Jul 2009 13:10:32 GMT
Author: gtully
Date: Wed Jul 22 13:10:31 2009
New Revision: 796694

URL: http://svn.apache.org/viewvc?rev=796694&view=rev
Log:
make test more tolerant to slow machines

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

Modified: activemq/trunk/activemq-core/src/test/java/org/apache/activemq/JMSConsumerTest.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/JMSConsumerTest.java?rev=796694&r1=796693&r2=796694&view=diff
==============================================================================
--- activemq/trunk/activemq-core/src/test/java/org/apache/activemq/JMSConsumerTest.java (original)
+++ activemq/trunk/activemq-core/src/test/java/org/apache/activemq/JMSConsumerTest.java Wed
Jul 22 13:10:31 2009
@@ -883,7 +883,7 @@
         }
         
         // let first bunch in queue expire
-        Thread.sleep(1000);
+        Thread.sleep(2000);
         
         producer.setTimeToLive(0);
         for (int i = 0; i < count; i++) {
@@ -896,7 +896,7 @@
         for(int i=0; i<count; i++) {
             TextMessage msg = (TextMessage) amqConsumer.receive();
             assertNotNull(msg);
-            assertTrue(msg.getText().contains("no expiry"));
+            assertTrue("message has \"no expiry\" text: " + msg.getText(), msg.getText().contains("no
expiry"));
             
             // force an ack when there are expired messages
             amqConsumer.acknowledge();         



Mime
View raw message