mirror of https://github.com/apache/activemq.git
avoid println in the console output
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@467699 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
1b9276d2c1
commit
fed2d6b5c7
|
@ -79,14 +79,14 @@ public class StartAndStopClientAndBrokerDoesNotLeaveThreadsRunningTest extends T
|
||||||
|
|
||||||
public void runTest(Task task) throws Exception {
|
public void runTest(Task task) throws Exception {
|
||||||
int numThreads = Thread.currentThread().getThreadGroup().activeCount();
|
int numThreads = Thread.currentThread().getThreadGroup().activeCount();
|
||||||
Thread.currentThread().getThreadGroup().list();
|
// Thread.currentThread().getThreadGroup().list();
|
||||||
|
|
||||||
task.execute();
|
task.execute();
|
||||||
|
|
||||||
Thread.yield();
|
Thread.yield();
|
||||||
Thread.sleep(2000); // Wait for the threads to exit on their own
|
Thread.sleep(2000); // Wait for the threads to exit on their own
|
||||||
|
|
||||||
Thread.currentThread().getThreadGroup().list();
|
// Thread.currentThread().getThreadGroup().list();
|
||||||
int activeCount = Thread.currentThread().getThreadGroup().activeCount();
|
int activeCount = Thread.currentThread().getThreadGroup().activeCount();
|
||||||
assertTrue("Should be at most one more thread but was: " + activeCount, numThreads + 1 <= activeCount);
|
assertTrue("Should be at most one more thread but was: " + activeCount, numThreads + 1 <= activeCount);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue