mirror of https://github.com/apache/activemq.git
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@516012 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
c97b97ed88
commit
12fa4de5c6
|
@ -116,7 +116,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
|
||||
|
@ -213,7 +213,7 @@ public class AdvisoryBrokerTest extends BrokerTestSupport {
|
|||
assertEquals(((ProducerInfo)m1.getDataStructure()).getProducerId(), producerInfo2.getProducerId());
|
||||
|
||||
// Close the second connection.
|
||||
connection2.send(closeConnectionInfo(connectionInfo2));
|
||||
connection2.request(closeConnectionInfo(connectionInfo2));
|
||||
connection2.stop();
|
||||
|
||||
// We should get an advisory of the producer closing
|
||||
|
@ -261,7 +261,7 @@ public class AdvisoryBrokerTest extends BrokerTestSupport {
|
|||
assertEquals(((ProducerInfo)m1.getDataStructure()).getProducerId(), producerInfo2.getProducerId());
|
||||
|
||||
// Close the second connection.
|
||||
connection2.send(closeConnectionInfo(connectionInfo2));
|
||||
connection2.request(closeConnectionInfo(connectionInfo2));
|
||||
connection2.stop();
|
||||
|
||||
// We should get an advisory of the producer closing
|
||||
|
|
Loading…
Reference in New Issue