mirror of https://github.com/apache/activemq.git
partial fix for AMQ-2075
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@745480 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
9216c18c73
commit
7f5e6667f4
|
@ -1128,6 +1128,9 @@ public class BrokerTest extends BrokerTestSupport {
|
|||
connection1.send(createAck(consumerInfo1, m1, 1, MessageAck.STANDARD_ACK_TYPE));
|
||||
}
|
||||
|
||||
// give the async ack a chance to perculate and validate all are currently consumed
|
||||
assertNull(connection1.getDispatchQueue().poll(MAX_NULL_WAIT, TimeUnit.MILLISECONDS));
|
||||
|
||||
// Close the connection, this should in turn close the consumer.
|
||||
connection1.request(closeConnectionInfo(connectionInfo1));
|
||||
|
||||
|
|
Loading…
Reference in New Issue