Shouldn't do last-minute changes before a large commit...
authorcostin <costin@13f79535-47bb-0310-9956-ffa450edef68>
Thu, 26 Nov 2009 07:02:53 +0000 (07:02 +0000)
committercostin <costin@13f79535-47bb-0310-9956-ffa450edef68>
Thu, 26 Nov 2009 07:02:53 +0000 (07:02 +0000)
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
modules/tomcat-lite/test/org/apache/tomcat/lite/http/LiveHttp1Test.java

index 32affa2..e2c8d91 100644 (file)
@@ -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);
index 9f89c8d..25c8ab4 100644 (file)
@@ -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());
     }
 }