jetty-9 improved test
This commit is contained in:
parent
129583679a
commit
fc49783275
|
@ -249,13 +249,16 @@ public abstract class ConnectorTimeoutTest extends HttpServerTestFixture
|
||||||
{
|
{
|
||||||
os.write("THIS DATA SHOULD NOT BE PARSED!\n\n".getBytes("utf-8"));
|
os.write("THIS DATA SHOULD NOT BE PARSED!\n\n".getBytes("utf-8"));
|
||||||
os.flush();
|
os.flush();
|
||||||
Thread.sleep(500);
|
Thread.sleep(100);
|
||||||
}
|
}
|
||||||
Assert.fail("half close should have timed out");
|
Assert.fail("half close should have timed out");
|
||||||
}
|
}
|
||||||
catch(SocketException e)
|
catch(SocketException e)
|
||||||
{
|
{
|
||||||
// expected
|
// expected
|
||||||
|
|
||||||
|
// Give the SSL onClose time to act
|
||||||
|
Thread.sleep(100);
|
||||||
}
|
}
|
||||||
|
|
||||||
// check the server side is closed
|
// check the server side is closed
|
||||||
|
|
Loading…
Reference in New Issue