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:
Gary Tully 2009-02-18 11:43:29 +00:00
parent 9216c18c73
commit 7f5e6667f4
1 changed files with 3 additions and 0 deletions

View File

@ -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));