activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rajdav...@apache.org
Subject svn commit: r515940 - /activemq/trunk/activemq-core/src/test/java/org/apache/activemq/broker/RecoveryBrokerTest.java
Date Thu, 08 Mar 2007 06:29:04 GMT
Author: rajdavies
Date: Wed Mar  7 22:29:04 2007
New Revision: 515940

URL: http://svn.apache.org/viewvc?view=rev&rev=515940
Log:
close connection required in some tests before the broker is re-started 

Modified:
    activemq/trunk/activemq-core/src/test/java/org/apache/activemq/broker/RecoveryBrokerTest.java

Modified: activemq/trunk/activemq-core/src/test/java/org/apache/activemq/broker/RecoveryBrokerTest.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/broker/RecoveryBrokerTest.java?view=diff&rev=515940&r1=515939&r2=515940
==============================================================================
--- activemq/trunk/activemq-core/src/test/java/org/apache/activemq/broker/RecoveryBrokerTest.java
(original)
+++ activemq/trunk/activemq-core/src/test/java/org/apache/activemq/broker/RecoveryBrokerTest.java
Wed Mar  7 22:29:04 2007
@@ -152,7 +152,7 @@
         connection1.send(createMessage(producerInfo1, destination, DeliveryMode.PERSISTENT));
         connection1.send(createMessage(producerInfo1, destination, DeliveryMode.PERSISTENT));
         connection1.send(createMessage(producerInfo1, destination, DeliveryMode.PERSISTENT));
-        
+        connection1.request(closeConnectionInfo(connectionInfo1));
         // Restart the broker.
         restartBroker();
         
@@ -193,6 +193,7 @@
         Message message = createMessage(producerInfo, destination);
         message.setPersistent(true);
         connection.send(message);
+        connection.request(closeConnectionInfo(connectionInfo));
         
         // restart the broker.
         restartBroker();
@@ -270,7 +271,7 @@
         
         // Commit
         connection.send(createCommitTransaction1Phase(connectionInfo, txid));
-
+        connection.request(closeConnectionInfo(connectionInfo));
         // restart the broker.
         restartBroker();
         
@@ -326,7 +327,7 @@
         }        
         // Commit
         connection.send(createCommitTransaction1Phase(connectionInfo, txid));
-        
+        connection.request(closeConnectionInfo(connectionInfo));
         // restart the broker.
         restartBroker();
         



Mime
View raw message