add some detail to the assertion to help diagnost intermittent failure

git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@796733 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Gary Tully 2009-07-22 14:11:45 +00:00
parent 5a0f76d0f2
commit c94279e12e
1 changed files with 2 additions and 3 deletions

View File

@ -21,7 +21,6 @@ import java.util.List;
import java.util.concurrent.TimeUnit;
import javax.jms.DeliveryMode;
import javax.jms.JMSException;
import junit.framework.Test;
@ -30,7 +29,6 @@ import org.apache.activemq.command.ActiveMQQueue;
import org.apache.activemq.command.ActiveMQTopic;
import org.apache.activemq.command.ConnectionInfo;
import org.apache.activemq.command.ConsumerInfo;
import org.apache.activemq.command.DestinationInfo;
import org.apache.activemq.command.LocalTransactionId;
import org.apache.activemq.command.Message;
import org.apache.activemq.command.MessageAck;
@ -1236,7 +1234,8 @@ public class BrokerTest extends BrokerTestSupport {
}
// give the async ack a chance to perculate and validate all are currently consumed
assertNull(connection1.getDispatchQueue().poll(MAX_NULL_WAIT, TimeUnit.MILLISECONDS));
Object result = connection1.getDispatchQueue().poll(MAX_NULL_WAIT, TimeUnit.MILLISECONDS);
assertNull("no more messages " + result, result);
// Close the consumer.
connection1.request(closeConsumerInfo(consumerInfo1));