activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chir...@apache.org
Subject svn commit: r387417 - /incubator/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/test/JmsSendReceiveTestSupport.java
Date Tue, 21 Mar 2006 05:14:07 GMT
Author: chirino
Date: Mon Mar 20 21:14:04 2006
New Revision: 387417

URL: http://svn.apache.org/viewcvs?rev=387417&view=rev
Log:
Doing a sleep inside the send loop makes TwoBrokerTopicSendReceiveLotsOfMessagesUsingTcpTest
take forever!

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

Modified: incubator/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/test/JmsSendReceiveTestSupport.java
URL: http://svn.apache.org/viewcvs/incubator/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/test/JmsSendReceiveTestSupport.java?rev=387417&r1=387416&r2=387417&view=diff
==============================================================================
--- incubator/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/test/JmsSendReceiveTestSupport.java
(original)
+++ incubator/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/test/JmsSendReceiveTestSupport.java
Mon Mar 20 21:14:04 2006
@@ -105,9 +105,9 @@
     public void testSendReceive() throws Exception {
         messages.clear();
         
+        Thread.sleep(1000);
         for (int i = 0; i < data.length; i++) {
             Message message = session.createTextMessage(data[i]);
-            Thread.sleep(200);
             if (verbose) {
                 log.info("About to send a message: " + message + " with text: " + data[i]);
             }



Mime
View raw message