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 18:16:21 UTC
svn commit: r516104 -
/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/broker/MessageExpirationTest.java
Author: rajdavies
Date: Thu Mar 8 09:16:18 2007
New Revision: 516104
URL: http://svn.apache.org/viewvc?view=rev&rev=516104
Log:
ensure connection state (e.g. consumers) are delivered before testing message consumption
Modified:
activemq/trunk/activemq-core/src/test/java/org/apache/activemq/broker/MessageExpirationTest.java
Modified: activemq/trunk/activemq-core/src/test/java/org/apache/activemq/broker/MessageExpirationTest.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/broker/MessageExpirationTest.java?view=diff&rev=516104&r1=516103&r2=516104
==============================================================================
--- activemq/trunk/activemq-core/src/test/java/org/apache/activemq/broker/MessageExpirationTest.java (original)
+++ activemq/trunk/activemq-core/src/test/java/org/apache/activemq/broker/MessageExpirationTest.java Thu Mar 8 09:16:18 2007
@@ -100,7 +100,7 @@
destination = createDestinationInfo(connection2, connectionInfo2, destinationType);
ConsumerInfo consumerInfo2 = createConsumerInfo(sessionInfo2, destination);
consumerInfo2.setPrefetchSize(1);
- connection2.send(consumerInfo2);
+ connection2.request(consumerInfo2);
// Reduce the limit so that only 1 message can flow through the broker at a time.
broker.getMemoryManager().setLimit(1);