Added assert to test weird failure condition.
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@2993 7e9141cc-0065-0410-87d8-b60c137991c4
This commit is contained in:
parent
b43b2607ad
commit
ab86f5d16a
|
@ -405,7 +405,9 @@ public class StressTest
|
||||||
socket.close();
|
socket.close();
|
||||||
long end=System.currentTimeMillis();
|
long end=System.currentTimeMillis();
|
||||||
|
|
||||||
response=response.substring(response.indexOf("\r\n\r\n")+4);
|
String endOfResponse = "\r\n\r\n";
|
||||||
|
assertTrue("response = '" + response + "'", response.contains(endOfResponse));
|
||||||
|
response=response.substring(response.indexOf(endOfResponse) + endOfResponse.length());
|
||||||
|
|
||||||
assertTrue(uri,response.startsWith("DATA "+__tests[i]));
|
assertTrue(uri,response.startsWith("DATA "+__tests[i]));
|
||||||
long latency=end-start;
|
long latency=end-start;
|
||||||
|
|
Loading…
Reference in New Issue