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:
Simone Bordet 2011-04-07 07:57:15 +00:00
parent b43b2607ad
commit ab86f5d16a
1 changed files with 3 additions and 1 deletions

View File

@ -405,7 +405,9 @@ public class StressTest
socket.close();
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]));
long latency=end-start;