From 69011564a832975867d0e66b12e11331f7a1787e Mon Sep 17 00:00:00 2001 From: costin Date: Thu, 26 Nov 2009 07:02:53 +0000 Subject: [PATCH] Shouldn't do last-minute changes before a large commit... git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@884424 13f79535-47bb-0310-9956-ffa450edef68 --- modules/tomcat-lite/test/org/apache/tomcat/lite/TestMain.java | 4 ++-- .../test/org/apache/tomcat/lite/http/LiveHttp1Test.java | 9 ++------- 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/modules/tomcat-lite/test/org/apache/tomcat/lite/TestMain.java b/modules/tomcat-lite/test/org/apache/tomcat/lite/TestMain.java index 32affa2f0..e2c8d91e2 100644 --- a/modules/tomcat-lite/test/org/apache/tomcat/lite/TestMain.java +++ b/modules/tomcat-lite/test/org/apache/tomcat/lite/TestMain.java @@ -192,8 +192,8 @@ public class TestMain { proxy = new HttpProxyService() .withHttpClient(testClient); testProxy.setPort(port); - testProxy.setDebugHttp(true); - testProxy.setDebug(true); +// testProxy.setDebugHttp(true); +// testProxy.setDebug(true); // dispatcher rejects 'http://' testProxy.setHttpService(proxy); diff --git a/modules/tomcat-lite/test/org/apache/tomcat/lite/http/LiveHttp1Test.java b/modules/tomcat-lite/test/org/apache/tomcat/lite/http/LiveHttp1Test.java index 9f89c8d8d..25c8ab488 100644 --- a/modules/tomcat-lite/test/org/apache/tomcat/lite/http/LiveHttp1Test.java +++ b/modules/tomcat-lite/test/org/apache/tomcat/lite/http/LiveHttp1Test.java @@ -138,12 +138,7 @@ public class LiveHttp1Test extends TestCase { httpClient.sendRequest(); - try { - httpClient.readAll(bodyRecvBuffer, to); - } catch (Throwable t) { - t.printStackTrace(); - return; - } - fail("Error"); + httpClient.readAll(bodyRecvBuffer, to); + assertEquals(0, bodyRecvBuffer.remaining()); } } -- 2.11.0