This is an automated email from the ASF dual-hosted git repository. markt pushed a commit to branch 9.0.x in repository https://gitbox.apache.org/repos/asf/tomcat.git
commit 09ae5ef6024526dadd9f7f62dcb8fab2f3b76dda 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 939ca68..fe0a61f 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