activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chir...@apache.org
Subject svn commit: r418436 - /incubator/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/transport/stomp/StompSubscriptionRemoveTest.java
Date Sat, 01 Jul 2006 04:21:41 GMT
Author: chirino
Date: Fri Jun 30 21:21:40 2006
New Revision: 418436

URL: http://svn.apache.org/viewvc?rev=418436&view=rev
Log:
Make this guy succeed on linux

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

Modified: incubator/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/transport/stomp/StompSubscriptionRemoveTest.java
URL: http://svn.apache.org/viewvc/incubator/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/transport/stomp/StompSubscriptionRemoveTest.java?rev=418436&r1=418435&r2=418436&view=diff
==============================================================================
--- incubator/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/transport/stomp/StompSubscriptionRemoveTest.java
(original)
+++ incubator/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/transport/stomp/StompSubscriptionRemoveTest.java
Fri Jun 30 21:21:40 2006
@@ -54,7 +54,7 @@
      */
     public void testRemoveSubscriber() throws Exception {
         BrokerService broker = new BrokerService();
-        broker.setPersistent(true);
+        broker.setPersistent(false);
 
         broker.addConnector("stomp://localhost:61613").setName("Stomp");
         broker.addConnector("tcp://localhost:61616").setName("Default");
@@ -114,6 +114,9 @@
             ++messagesCount;
             ++count;
         }
+        
+        sendFrame("DISCONNECT\n\n");
+        Thread.sleep(1000);
         stompSocket.close();
 
         stompSocket = new Socket("localhost", 61613);
@@ -162,7 +165,8 @@
         catch (IOException ex) {
             ex.printStackTrace();
         }
-        
+                
+        sendFrame("DISCONNECT\n\n");
         stompSocket.close();
         broker.stop();
         



Mime
View raw message