jetty-9 improved test

This commit is contained in:
Greg Wilkins 2012-09-17 17:42:55 +10:00
parent 129583679a
commit fc49783275
1 changed files with 5 additions and 2 deletions

View File

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