longer timeouts in test
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@1280 7e9141cc-0065-0410-87d8-b60c137991c4
This commit is contained in:
parent
22adee9473
commit
aa5c82df8e
|
@ -116,19 +116,18 @@ public class QueuedThreadPoolTest extends TestCase
|
|||
|
||||
for (int i=0;i<9;i++)
|
||||
jobs[i]._running=false;
|
||||
Thread.sleep(1000);
|
||||
|
||||
assertTrue(tp.getThreads()<10);
|
||||
Thread.sleep(1100);
|
||||
int threads=tp.getThreads();
|
||||
Thread.sleep(1000);
|
||||
assertTrue(threads<10);
|
||||
Thread.sleep(1100);
|
||||
assertTrue(tp.getThreads()<threads);
|
||||
threads=tp.getThreads();
|
||||
Thread.sleep(1000);
|
||||
Thread.sleep(1100);
|
||||
assertTrue(tp.getThreads()<threads);
|
||||
|
||||
for (int i=9;i<jobs.length;i++)
|
||||
jobs[i]._running=false;
|
||||
Thread.sleep(1000);
|
||||
Thread.sleep(500);
|
||||
|
||||
tp.stop();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue