ensure connection state (e.g. consumers) are delivered before testing message consumption

git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@516104 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Robert Davies 2007-03-08 17:16:18 +00:00
parent f2acaa2110
commit 57ea011bee
1 changed files with 1 additions and 1 deletions

View File

@ -100,7 +100,7 @@ public class MessageExpirationTest extends BrokerTestSupport {
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);