activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r1180059 - /activemq/trunk/activemq-core/src/test/java/org/apache/activemq/transport/stomp/Stomp11Test.java
Date Fri, 07 Oct 2011 14:43:53 GMT
Author: tabish
Date: Fri Oct  7 14:43:53 2011
New Revision: 1180059

URL: http://svn.apache.org/viewvc?rev=1180059&view=rev
Log:
Give a little extra time for the Stomp frames to take effect.

Modified:
    activemq/trunk/activemq-core/src/test/java/org/apache/activemq/transport/stomp/Stomp11Test.java

Modified: activemq/trunk/activemq-core/src/test/java/org/apache/activemq/transport/stomp/Stomp11Test.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/transport/stomp/Stomp11Test.java?rev=1180059&r1=1180058&r2=1180059&view=diff
==============================================================================
--- activemq/trunk/activemq-core/src/test/java/org/apache/activemq/transport/stomp/Stomp11Test.java
(original)
+++ activemq/trunk/activemq-core/src/test/java/org/apache/activemq/transport/stomp/Stomp11Test.java
Fri Oct  7 14:43:53 2011
@@ -23,6 +23,7 @@ import java.net.SocketTimeoutException;
 import java.net.URI;
 import java.net.URISyntaxException;
 import java.net.UnknownHostException;
+import java.util.concurrent.TimeUnit;
 
 import javax.jms.Connection;
 import javax.jms.MessageConsumer;
@@ -274,7 +275,7 @@ public class Stomp11Test extends Combina
         assertTrue(f.indexOf("session:") >= 0);
         LOG.debug("Broker sent: " + f);
 
-        Thread.sleep(5000);
+        Thread.sleep(TimeUnit.SECONDS.toMillis(10));
 
         try {
             String message = "SEND\n" + "destination:/queue/" + getQueueName() + "\n\n" +
"Hello World" + Stomp.NULL;
@@ -372,7 +373,7 @@ public class Stomp11Test extends Combina
                 "id:12345\n\n" + Stomp.NULL;
         stompConnection.sendFrame(frame);
 
-        Thread.sleep(2000);
+        Thread.sleep(4000);
 
         stompConnection.sendFrame(message);
 



Mime
View raw message