Update test
This commit is contained in:
parent
c1f1a6018b
commit
dfca108603
|
@ -35,6 +35,7 @@ import org.eclipse.jetty.http.MimeTypes;
|
|||
import org.eclipse.jetty.util.BufferUtil;
|
||||
import org.eclipse.jetty.util.Callback;
|
||||
import org.eclipse.jetty.util.IO;
|
||||
import org.eclipse.jetty.util.NanoTime;
|
||||
import org.eclipse.jetty.util.component.LifeCycle;
|
||||
import org.junit.jupiter.api.AfterEach;
|
||||
import org.junit.jupiter.api.BeforeEach;
|
||||
|
@ -158,7 +159,6 @@ public class LargeHeaderTest
|
|||
output.flush();
|
||||
|
||||
String rawResponse = readResponse(client, 1, input);
|
||||
System.err.println(rawResponse);
|
||||
assertThat(rawResponse, containsString(" 500 "));
|
||||
}
|
||||
}
|
||||
|
@ -284,7 +284,11 @@ public class LargeHeaderTest
|
|||
output.write(rawRequest.formatted(count).getBytes(UTF_8));
|
||||
output.flush();
|
||||
|
||||
long start = NanoTime.now();
|
||||
String rawResponse = readResponse(client, count, input);
|
||||
if (NanoTime.secondsSince(start) >= 1)
|
||||
LOG.warn("X-Count: {} - Slow Response", count);
|
||||
|
||||
if (rawResponse.isEmpty())
|
||||
{
|
||||
LOG.warn("X-Count: {} - Empty Raw Response", count);
|
||||
|
|
Loading…
Reference in New Issue