Update test

This commit is contained in:
gregw 2023-06-06 09:33:27 +02:00
parent c1f1a6018b
commit dfca108603
1 changed files with 5 additions and 1 deletions

View File

@ -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);