You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by ra...@apache.org on 2007/03/08 15:53:41 UTC

svn commit: r516063 - /activemq/trunk/activemq-core/src/test/java/org/apache/activemq/broker/advisory/AdvisoryBrokerTest.java

Author: rajdavies
Date: Thu Mar  8 06:53:40 2007
New Revision: 516063

URL: http://svn.apache.org/viewvc?view=rev&rev=516063
Log:
ensure connections are closed (so all messages are fludshed to the broker) before testing message delivery

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

Modified: activemq/trunk/activemq-core/src/test/java/org/apache/activemq/broker/advisory/AdvisoryBrokerTest.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/broker/advisory/AdvisoryBrokerTest.java?view=diff&rev=516063&r1=516062&r2=516063
==============================================================================
--- activemq/trunk/activemq-core/src/test/java/org/apache/activemq/broker/advisory/AdvisoryBrokerTest.java (original)
+++ activemq/trunk/activemq-core/src/test/java/org/apache/activemq/broker/advisory/AdvisoryBrokerTest.java Thu Mar  8 06:53:40 2007
@@ -163,7 +163,7 @@
         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