simplified test

git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@1288 7e9141cc-0065-0410-87d8-b60c137991c4
This commit is contained in:
Greg Wilkins 2010-02-24 01:47:09 +00:00
parent c5adaf5937
commit 74d1988025
1 changed files with 3 additions and 1 deletions

View File

@ -166,7 +166,7 @@ public class QueuedThreadPoolTest extends TestCase
assertEquals(10,tp.getThreads()); assertEquals(10,tp.getThreads());
assertEquals(0,tp.getIdleThreads()); assertEquals(0,tp.getIdleThreads());
_sleep=1; _sleep=5;
for (int i=0;i<500;i++) for (int i=0;i<500;i++)
{ {
tp.dispatch(job); tp.dispatch(job);
@ -177,6 +177,8 @@ public class QueuedThreadPoolTest extends TestCase
} }
} }
System.err.println("500 threads="+tp.getThreads()+" idle="+tp.getIdleThreads()); System.err.println("500 threads="+tp.getThreads()+" idle="+tp.getIdleThreads());
Thread.sleep(100);
System.err.println("600 threads="+tp.getThreads()+" idle="+tp.getIdleThreads());
assertEquals(2,tp.getThreads()); assertEquals(2,tp.getThreads());
assertEquals(2,tp.getIdleThreads()); assertEquals(2,tp.getIdleThreads());