Fixed flaky ssl fullMethod test (#7896)

* Fixed flaky test
This commit is contained in:
Greg Wilkins 2022-05-01 09:05:09 +02:00 committed by GitHub
parent dd994619f4
commit 75f5cc68e4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 2 deletions

View File

@ -209,8 +209,16 @@ public abstract class HttpServerTestBase extends HttpServerTestFixture
byte[] buffer = new byte[64 * 1024];
Arrays.fill(buffer, (byte)'A');
os.write(buffer);
os.flush();
try
{
os.write(buffer);
os.flush();
}
catch (Exception e)
{
if (LOG.isDebugEnabled())
LOG.debug("write exception", e);
}
// Read the response.
String response = readResponse(client);