This is an automated email from the ASF dual-hosted git repository. markt pushed a commit to branch 10.0.x in repository https://gitbox.apache.org/repos/asf/tomcat.git
commit 9c7246cb028daec152d71d4ff11ac547f9db3527 Author: Mark Thomas <ma...@apache.org> AuthorDate: Wed May 26 10:32:52 2021 +0100 Increase data written to ensure required (for the test) IOE is triggered --- test/org/apache/catalina/core/TestAsyncContextStateChanges.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/org/apache/catalina/core/TestAsyncContextStateChanges.java b/test/org/apache/catalina/core/TestAsyncContextStateChanges.java index 3ef81a3..b7743b0 100644 --- a/test/org/apache/catalina/core/TestAsyncContextStateChanges.java +++ b/test/org/apache/catalina/core/TestAsyncContextStateChanges.java @@ -232,7 +232,9 @@ public class TestAsyncContextStateChanges extends TomcatBaseTest { resp.setCharacterEncoding("UTF-8"); OutputStream os = resp.getOutputStream(); resp.setContentType("text/plain"); - for (int i = 0; i < 16; i++) { + // Needs to be large enough to fill buffers and trigger + // the IOE for the test to work as expected. + for (int i = 0; i < 64; i++) { os.write(TestCoyoteAdapter.TEXT_8K.getBytes(StandardCharsets.UTF_8)); } } catch (IOException e) { --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org