ensure connections are closed (so all messages are fludshed to the broker) before testing message delivery

git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@516063 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Robert Davies 2007-03-08 14:53:40 +00:00
parent 5143838fa3
commit 1d846a9e61
1 changed files with 1 additions and 1 deletions

View File

@ -163,7 +163,7 @@ public class AdvisoryBrokerTest extends BrokerTestSupport {
assertEquals(((ConsumerInfo)m1.getDataStructure()).getConsumerId(), consumerInfo2.getConsumerId());
// Close the second connection.
connection2.send(closeConnectionInfo(connectionInfo2));
connection2.request(closeConnectionInfo(connectionInfo2));
connection2.stop();
// We should get an advisory of the consumer closing