activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chir...@apache.org
Subject svn commit: r387632 - /incubator/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/test/JmsSendReceiveTestSupport.java
Date Tue, 21 Mar 2006 21:44:17 GMT
Author: chirino
Date: Tue Mar 21 13:44:15 2006
New Revision: 387632

URL: http://svn.apache.org/viewcvs?rev=387632&view=rev
Log:
clear the list after the sleep so that any left over messages are drained.

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=387632&r1=387631&r2=387632&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
Tue Mar 21 13:44:15 2006
@@ -103,9 +103,10 @@
      * @throws Exception
      */
     public void testSendReceive() throws Exception {
+
+        Thread.sleep(1000);
         messages.clear();
         
-        Thread.sleep(1000);
         for (int i = 0; i < data.length; i++) {
             Message message = session.createTextMessage(data[i]);
             if (verbose) {



Mime
View raw message