mirror of https://github.com/apache/activemq.git
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:
parent
f2acaa2110
commit
57ea011bee
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue