Author: markt Date: Wed Feb 4 11:45:39 2015 New Revision: 1657125 URL: http://svn.apache.org/r1657125 Log: Fix failing NIO2 unit test. Response body may not be chunked so doing a line-by-line read will fail unless the client is explicitly told to use the content length.
Modified: tomcat/trunk/test/org/apache/coyote/http11/TestInternalOutputBuffer.java Modified: tomcat/trunk/test/org/apache/coyote/http11/TestInternalOutputBuffer.java URL: http://svn.apache.org/viewvc/tomcat/trunk/test/org/apache/coyote/http11/TestInternalOutputBuffer.java?rev=1657125&r1=1657124&r2=1657125&view=diff ============================================================================== --- tomcat/trunk/test/org/apache/coyote/http11/TestInternalOutputBuffer.java (original) +++ tomcat/trunk/test/org/apache/coyote/http11/TestInternalOutputBuffer.java Wed Feb 4 11:45:39 2015 @@ -41,6 +41,10 @@ public class TestInternalOutputBuffer ex ExpectationClient client = new ExpectationClient(); client.setPort(tomcat.getConnector().getLocalPort()); + // Expected content doesn't end with a CR-LF so if it isn't chunked make + // sure the content length is used as reading it line-by-line will fail + // since there is no "line". + client.setUseContentLength(true); client.connect(); --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org