cleanup debug output
This commit is contained in:
parent
f778867f32
commit
c6b3bab6d7
|
@ -45,7 +45,6 @@ public abstract class ConnectorTimeoutTest extends HttpServerTestFixture
|
||||||
@Test
|
@Test
|
||||||
public void testMaxIdleWithRequest10() throws Exception
|
public void testMaxIdleWithRequest10() throws Exception
|
||||||
{
|
{
|
||||||
System.err.println("testMaxIdleWithRequest10");
|
|
||||||
configureServer(new HelloWorldHandler());
|
configureServer(new HelloWorldHandler());
|
||||||
Socket client=newSocket(HOST,_connector.getLocalPort());
|
Socket client=newSocket(HOST,_connector.getLocalPort());
|
||||||
client.setSoTimeout(10000);
|
client.setSoTimeout(10000);
|
||||||
|
@ -77,7 +76,6 @@ public abstract class ConnectorTimeoutTest extends HttpServerTestFixture
|
||||||
@Test
|
@Test
|
||||||
public void testMaxIdleWithRequest11() throws Exception
|
public void testMaxIdleWithRequest11() throws Exception
|
||||||
{
|
{
|
||||||
System.err.println("testMaxIdleWithRequest11");
|
|
||||||
configureServer(new EchoHandler());
|
configureServer(new EchoHandler());
|
||||||
Socket client=newSocket(HOST,_connector.getLocalPort());
|
Socket client=newSocket(HOST,_connector.getLocalPort());
|
||||||
client.setSoTimeout(10000);
|
client.setSoTimeout(10000);
|
||||||
|
@ -112,7 +110,6 @@ public abstract class ConnectorTimeoutTest extends HttpServerTestFixture
|
||||||
@Test
|
@Test
|
||||||
public void testMaxIdleNoRequest() throws Exception
|
public void testMaxIdleNoRequest() throws Exception
|
||||||
{
|
{
|
||||||
System.err.println("testMaxIdleNoRequest");
|
|
||||||
configureServer(new EchoHandler());
|
configureServer(new EchoHandler());
|
||||||
Socket client=newSocket(HOST,_connector.getLocalPort());
|
Socket client=newSocket(HOST,_connector.getLocalPort());
|
||||||
client.setSoTimeout(10000);
|
client.setSoTimeout(10000);
|
||||||
|
@ -141,7 +138,6 @@ public abstract class ConnectorTimeoutTest extends HttpServerTestFixture
|
||||||
@Test
|
@Test
|
||||||
public void testMaxIdleWithSlowRequest() throws Exception
|
public void testMaxIdleWithSlowRequest() throws Exception
|
||||||
{
|
{
|
||||||
System.err.println("testMaxIdleWithSlowRequest");
|
|
||||||
configureServer(new EchoHandler());
|
configureServer(new EchoHandler());
|
||||||
Socket client=newSocket(HOST,_connector.getLocalPort());
|
Socket client=newSocket(HOST,_connector.getLocalPort());
|
||||||
client.setSoTimeout(10000);
|
client.setSoTimeout(10000);
|
||||||
|
@ -182,7 +178,6 @@ public abstract class ConnectorTimeoutTest extends HttpServerTestFixture
|
||||||
@Test
|
@Test
|
||||||
public void testMaxIdleWithSlowResponse() throws Exception
|
public void testMaxIdleWithSlowResponse() throws Exception
|
||||||
{
|
{
|
||||||
System.err.println("testMaxIdleWithSlowResponse");
|
|
||||||
configureServer(new SlowResponseHandler());
|
configureServer(new SlowResponseHandler());
|
||||||
Socket client=newSocket(HOST,_connector.getLocalPort());
|
Socket client=newSocket(HOST,_connector.getLocalPort());
|
||||||
client.setSoTimeout(10000);
|
client.setSoTimeout(10000);
|
||||||
|
@ -212,7 +207,6 @@ public abstract class ConnectorTimeoutTest extends HttpServerTestFixture
|
||||||
@Test
|
@Test
|
||||||
public void testMaxIdleWithWait() throws Exception
|
public void testMaxIdleWithWait() throws Exception
|
||||||
{
|
{
|
||||||
System.err.println("testMaxIdleWithWait");
|
|
||||||
configureServer(new WaitHandler());
|
configureServer(new WaitHandler());
|
||||||
Socket client=newSocket(HOST,_connector.getLocalPort());
|
Socket client=newSocket(HOST,_connector.getLocalPort());
|
||||||
client.setSoTimeout(10000);
|
client.setSoTimeout(10000);
|
||||||
|
|
|
@ -948,7 +948,6 @@ public abstract class HttpServerTestBase extends HttpServerTestFixture
|
||||||
assertTrue(in.indexOf("Now is the time for all good men to come to the aid of the party")>0);
|
assertTrue(in.indexOf("Now is the time for all good men to come to the aid of the party")>0);
|
||||||
assertTrue(in.indexOf("\r\n0\r\n")==-1); // chunking is interrupted by error close
|
assertTrue(in.indexOf("\r\n0\r\n")==-1); // chunking is interrupted by error close
|
||||||
|
|
||||||
assertTrue(!handler._endp.isBlocking() || handler._endp.isOutputShutdown()); // oshut
|
|
||||||
client.close();
|
client.close();
|
||||||
Thread.sleep(100);
|
Thread.sleep(100);
|
||||||
assertTrue(!handler._endp.isOpen());
|
assertTrue(!handler._endp.isOpen());
|
||||||
|
@ -976,7 +975,7 @@ public abstract class HttpServerTestBase extends HttpServerTestFixture
|
||||||
response.getWriter().flush();
|
response.getWriter().flush();
|
||||||
response.flushBuffer();
|
response.flushBuffer();
|
||||||
|
|
||||||
throw new ServletException(new Exception("Ooops I broke it after commit"));
|
throw new ServletException(new Exception("exception after commit"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue