close connection before restarting the broker

git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@516008 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Robert Davies 2007-03-08 10:59:29 +00:00
parent 8ad375ff60
commit c97b97ed88
1 changed files with 2 additions and 1 deletions

View File

@ -73,6 +73,7 @@ public class XARecoveryBrokerTest extends BrokerRestartTestSupport {
// Since prepared but not committed.. they should not get delivered.
assertNoMessagesLeft(connection);
connection.request(closeConnectionInfo(connectionInfo));
// restart the broker.
restartBroker();
@ -134,7 +135,7 @@ public class XARecoveryBrokerTest extends BrokerRestartTestSupport {
// Commit
connection.send(createCommitTransaction1Phase(connectionInfo, txid));
connection.request(closeConnectionInfo(connectionInfo));
// restart the broker.
restartBroker();