close connection required in some tests before the broker is re-started

git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@515940 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Robert Davies 2007-03-08 06:29:04 +00:00
parent fa2d43f379
commit 825447a615
1 changed files with 4 additions and 3 deletions

View File

@ -152,7 +152,7 @@ public class RecoveryBrokerTest extends BrokerRestartTestSupport {
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 @@ public class RecoveryBrokerTest extends BrokerRestartTestSupport {
Message message = createMessage(producerInfo, destination);
message.setPersistent(true);
connection.send(message);
connection.request(closeConnectionInfo(connectionInfo));
// restart the broker.
restartBroker();
@ -270,7 +271,7 @@ public class RecoveryBrokerTest extends BrokerRestartTestSupport {
// Commit
connection.send(createCommitTransaction1Phase(connectionInfo, txid));
connection.request(closeConnectionInfo(connectionInfo));
// restart the broker.
restartBroker();
@ -326,7 +327,7 @@ public class RecoveryBrokerTest extends BrokerRestartTestSupport {
}
// Commit
connection.send(createCommitTransaction1Phase(connectionInfo, txid));
connection.request(closeConnectionInfo(connectionInfo));
// restart the broker.
restartBroker();