activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r906301 - /activemq/trunk/activemq-core/src/test/java/org/apache/activemq/transport/stomp/StompTest.java
Date Thu, 04 Feb 2010 00:30:17 GMT
Author: tabish
Date: Thu Feb  4 00:30:16 2010
New Revision: 906301

URL: http://svn.apache.org/viewvc?rev=906301&view=rev
Log:
https://issues.apache.org/activemq/browse/AMQ-2490

Increase the receive timeout to fix errors on slow/loaded machines.

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

Modified: activemq/trunk/activemq-core/src/test/java/org/apache/activemq/transport/stomp/StompTest.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/transport/stomp/StompTest.java?rev=906301&r1=906300&r2=906301&view=diff
==============================================================================
--- activemq/trunk/activemq-core/src/test/java/org/apache/activemq/transport/stomp/StompTest.java
(original)
+++ activemq/trunk/activemq-core/src/test/java/org/apache/activemq/transport/stomp/StompTest.java
Thu Feb  4 00:30:16 2010
@@ -1115,7 +1115,7 @@
 
         stompConnection.sendFrame(frame);
 
-        TextMessage message = (TextMessage)consumer.receive(1000);
+        TextMessage message = (TextMessage)consumer.receive(5000);
         assertNotNull(message);
         assertEquals("system", message.getStringProperty(Stomp.Headers.Message.USERID));
 
@@ -1135,7 +1135,7 @@
         frame = "SEND\n" + "destination:/queue/" + getQueueName() + "\n\n" + "Hello World"
+ Stomp.NULL;
         stompConnection.sendFrame(frame);
 
-        StompFrame message = stompConnection.receive(1000);
+        StompFrame message = stompConnection.receive(5000);
         assertEquals("system", message.getHeaders().get(Stomp.Headers.Message.USERID));
     }
 



Mime
View raw message