git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@391 7e9141cc-0065-0410-87d8-b60c137991c4
This commit is contained in:
Greg Wilkins 2009-06-12 23:46:30 +00:00
parent 109df118a4
commit 6d63160f38
1 changed files with 3 additions and 1 deletions

View File

@ -109,7 +109,6 @@ public class StressTest extends TestCase
public void doPaths(int thread,String name,boolean persistent) throws Exception
{
if (persistent)
{
long start=System.currentTimeMillis();
@ -128,6 +127,7 @@ public class StressTest extends TestCase
socket.getOutputStream().write(request.getBytes());
socket.getOutputStream().flush();
Thread.yield();
}
long written=System.currentTimeMillis();
@ -138,6 +138,8 @@ public class StressTest extends TestCase
long end=System.currentTimeMillis();
int bodies = count(response,"HTTP/1.1 200 OK");
if (__tests.length!=bodies)
System.err.println(response);
assertEquals(__tests.length,bodies);
long bind=connected-start;