activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gtu...@apache.org
Subject svn commit: r766639 - /activemq/trunk/activemq-core/src/test/java/org/apache/activemq/usecases/ThreeBrokerQueueNetworkTest.java
Date Mon, 20 Apr 2009 10:18:23 GMT
Author: gtully
Date: Mon Apr 20 10:18:22 2009
New Revision: 766639

URL: http://svn.apache.org/viewvc?rev=766639&view=rev
Log:
give test some more time for slower machines

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

Modified: activemq/trunk/activemq-core/src/test/java/org/apache/activemq/usecases/ThreeBrokerQueueNetworkTest.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/usecases/ThreeBrokerQueueNetworkTest.java?rev=766639&r1=766638&r2=766639&view=diff
==============================================================================
--- activemq/trunk/activemq-core/src/test/java/org/apache/activemq/usecases/ThreeBrokerQueueNetworkTest.java
(original)
+++ activemq/trunk/activemq-core/src/test/java/org/apache/activemq/usecases/ThreeBrokerQueueNetworkTest.java
Mon Apr 20 10:18:22 2009
@@ -317,7 +317,7 @@
         MessageConsumer clientA = createConsumer("BrokerA", dest, messagesReceived);
 
         // ensure advisory percolation.
-        Thread.sleep(1000);
+        Thread.sleep(2000);
 
         // Send messages
         sendMessages("BrokerB", dest, messageCount);
@@ -342,7 +342,7 @@
         MessageConsumer clientA = createConsumer("BrokerA", dest);
         
         // ensure advisors have percolated
-        Thread.sleep(500);
+        Thread.sleep(2000);
         
         LOG.info("Consumer on B");
         int messageCount = 2000;
@@ -352,13 +352,13 @@
         MessageConsumer clientB = createConsumer("BrokerB", dest, messagesReceived);
           
         // ensure advisors have percolated
-        Thread.sleep(500);
+        Thread.sleep(2000);
 
         LOG.info("Close consumer on A");
         clientA.close();
 
         // ensure advisors have percolated
-        Thread.sleep(500);
+        Thread.sleep(2000);
        
         LOG.info("Send to B"); 
         sendMessages("BrokerB", dest, messageCount);
@@ -399,7 +399,7 @@
         MessageConsumer clientA = createConsumer("BrokerA", dest);
         
         // ensure advisors have percolated
-        Thread.sleep(500);
+        Thread.sleep(2000);
         
         LOG.info("Consumer on B");
         int messageCount = 2000;
@@ -412,19 +412,19 @@
         msgs.setProcessingDelay(10);
         
         // ensure advisors have percolated
-        Thread.sleep(500);
+        Thread.sleep(2000);
 
         LOG.info("Close consumer on A");
         clientA.close();
 
         // ensure advisors have percolated
-        Thread.sleep(500);
+        Thread.sleep(2000);
        
         LOG.info("Send to B"); 
         sendMessages("BrokerB", dest, messageCount);
 
         // Let's try to wait for any messages.
-        assertTrue(messagesReceived.await(30, TimeUnit.SECONDS));
+        assertTrue(messagesReceived.await(60, TimeUnit.SECONDS));
         assertEquals(messageCount, msgs.getMessageCount());      
     }
 



Mime
View raw message