You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by ch...@apache.org on 2006/10/25 18:06:21 UTC
svn commit: r467699 -
/incubator/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/usecases/StartAndStopClientAndBrokerDoesNotLeaveThreadsRunningTest.java
Author: chirino
Date: Wed Oct 25 09:06:20 2006
New Revision: 467699
URL: http://svn.apache.org/viewvc?view=rev&rev=467699
Log:
avoid println in the console output
Modified:
incubator/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/usecases/StartAndStopClientAndBrokerDoesNotLeaveThreadsRunningTest.java
Modified: incubator/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/usecases/StartAndStopClientAndBrokerDoesNotLeaveThreadsRunningTest.java
URL: http://svn.apache.org/viewvc/incubator/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/usecases/StartAndStopClientAndBrokerDoesNotLeaveThreadsRunningTest.java?view=diff&rev=467699&r1=467698&r2=467699
==============================================================================
--- incubator/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/usecases/StartAndStopClientAndBrokerDoesNotLeaveThreadsRunningTest.java (original)
+++ incubator/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/usecases/StartAndStopClientAndBrokerDoesNotLeaveThreadsRunningTest.java Wed Oct 25 09:06:20 2006
@@ -79,14 +79,14 @@
public void runTest(Task task) throws Exception {
int numThreads = Thread.currentThread().getThreadGroup().activeCount();
- Thread.currentThread().getThreadGroup().list();
+// Thread.currentThread().getThreadGroup().list();
task.execute();
Thread.yield();
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();
assertTrue("Should be at most one more thread but was: " + activeCount, numThreads + 1 <= activeCount);
}