activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jstrac...@apache.org
Subject svn commit: r377725 - /incubator/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/transport/stomp/StompTest.java
Date Tue, 14 Feb 2006 13:39:36 GMT
Author: jstrachan
Date: Tue Feb 14 05:39:34 2006
New Revision: 377725

URL: http://svn.apache.org/viewcvs?rev=377725&view=rev
Log:
fixed unsubscribe test

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

Modified: incubator/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/transport/stomp/StompTest.java
URL: http://svn.apache.org/viewcvs/incubator/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/transport/stomp/StompTest.java?rev=377725&r1=377724&r2=377725&view=diff
==============================================================================
--- incubator/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/transport/stomp/StompTest.java
(original)
+++ incubator/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/transport/stomp/StompTest.java
Tue Feb 14 05:39:34 2006
@@ -178,7 +178,7 @@
 
         sendFrame(frame);
 
-        TextMessage message = (TextMessage) consumer.receive(60000);
+        TextMessage message = (TextMessage) consumer.receive(1000);
         assertNotNull(message);
         assertEquals("Hello World", message.getText());
     }
@@ -323,8 +323,11 @@
             "destination:/queue/" + getQueueName() + "\n" +
             "\n\n" +
             Stomp.NULL;
-                sendFrame(frame);
+        sendFrame(frame);
 
+        // lets wait for the unsubscribe to take effect
+        Thread.sleep(1000);
+        
         //send a message to our queue
         sendMessage("second message");
 



Mime
View raw message