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:
parent
c5adaf5937
commit
74d1988025
|
@ -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());
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue