mirror of https://github.com/apache/activemq.git
add some more diagnostic logging to test
This commit is contained in:
parent
7948d69056
commit
383c27e245
|
@ -19,6 +19,7 @@ package org.apache.activemq.network;
|
|||
import static org.junit.Assert.assertTrue;
|
||||
|
||||
import java.io.File;
|
||||
import java.util.Arrays;
|
||||
import java.util.concurrent.TimeUnit;
|
||||
import java.util.concurrent.atomic.AtomicInteger;
|
||||
|
||||
|
@ -267,6 +268,7 @@ public class NetworkBrokerDetachTest {
|
|||
|
||||
if (view.getName().equals(destination.getPhysicalName())) {
|
||||
LOG.info("Consumers for " + destination.getPhysicalName() + " on " + broker + " : " + view.getConsumerCount());
|
||||
LOG.info("Subs: " + Arrays.asList(view.getSubscriptions()));
|
||||
if (expectedCount == view.getConsumerCount()) {
|
||||
result = true;
|
||||
}
|
||||
|
@ -290,7 +292,7 @@ public class NetworkBrokerDetachTest {
|
|||
if (view != null) {
|
||||
ObjectName[] subs = broker.getAdminView().getInactiveDurableTopicSubscribers();
|
||||
if (subs != null) {
|
||||
LOG.info("inactive durable subs on " + broker + " : " + subs);
|
||||
LOG.info("inactive durable subs on " + broker + " : " + Arrays.asList(subs));
|
||||
if (expectedCount == subs.length) {
|
||||
result = true;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue