mirror of
https://github.com/apache/activemq.git
synced 2025-02-10 12:06:05 +00:00
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);
|
destination = createDestinationInfo(connection2, connectionInfo2, destinationType);
|
||||||
ConsumerInfo consumerInfo2 = createConsumerInfo(sessionInfo2, destination);
|
ConsumerInfo consumerInfo2 = createConsumerInfo(sessionInfo2, destination);
|
||||||
consumerInfo2.setPrefetchSize(1);
|
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.
|
// Reduce the limit so that only 1 message can flow through the broker at a time.
|
||||||
broker.getMemoryManager().setLimit(1);
|
broker.getMemoryManager().setLimit(1);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user