improve assert information to help diagnose intermittent failure

git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@796983 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Gary Tully 2009-07-23 09:00:40 +00:00
parent 432dcfeecf
commit f36aa55c4a
1 changed files with 2 additions and 1 deletions

View File

@ -1187,7 +1187,8 @@ public class BrokerTest extends BrokerTestSupport {
// Send another message, connection1 should not get the message.
connection2.request(createMessage(producerInfo2, destination, deliveryMode));
assertNull(connection1.getDispatchQueue().poll(MAX_NULL_WAIT, TimeUnit.MILLISECONDS));
Object msg = connection1.getDispatchQueue().poll(MAX_NULL_WAIT, TimeUnit.MILLISECONDS);
assertNull("no message received from connection1 after session close", msg);
}
public void initCombosForTestConsumerClose() {