This is an automated email from the ASF dual-hosted git repository.

rmaucher pushed a commit to branch 9.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git


The following commit(s) were added to refs/heads/9.0.x by this push:
     new 01d452312b Fix test
01d452312b is described below

commit 01d452312bc9b509b529c2f5f77ae7560e5544a3
Author: remm <[email protected]>
AuthorDate: Wed Sep 2 22:03:21 2026 +0200

    Fix test
---
 test/org/apache/catalina/webresources/war/TestWarURLConnection.java | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git 
a/test/org/apache/catalina/webresources/war/TestWarURLConnection.java 
b/test/org/apache/catalina/webresources/war/TestWarURLConnection.java
index 874514547a..61cf710e49 100644
--- a/test/org/apache/catalina/webresources/war/TestWarURLConnection.java
+++ b/test/org/apache/catalina/webresources/war/TestWarURLConnection.java
@@ -67,7 +67,9 @@ public class TestWarURLConnection {
         Assert.assertFalse(urlConn.getUseCaches());
 
         try (InputStream is = urlConn.getInputStream()) {
-            is.readAllBytes();
+            byte[] buf = new byte[1024];
+            while (is.read(buf) > 0) {
+            }
         }
 
         try {


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to