You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ma...@apache.org on 2020/11/12 16:58:18 UTC

[tomcat] branch 8.5.x updated: Fix Windows test failures

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

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


The following commit(s) were added to refs/heads/8.5.x by this push:
     new 2d6d3bf  Fix Windows test failures
2d6d3bf is described below

commit 2d6d3bfbcd9b11f60d588203dab3c01cb1f972d7
Author: Mark Thomas <ma...@apache.org>
AuthorDate: Tue Nov 10 13:41:48 2020 +0000

    Fix Windows test failures
---
 test/org/apache/coyote/http11/TestHttp11Processor.java | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/test/org/apache/coyote/http11/TestHttp11Processor.java b/test/org/apache/coyote/http11/TestHttp11Processor.java
index 0e42302..bc6281d 100644
--- a/test/org/apache/coyote/http11/TestHttp11Processor.java
+++ b/test/org/apache/coyote/http11/TestHttp11Processor.java
@@ -1744,7 +1744,15 @@ public class TestHttp11Processor extends TomcatBaseTest {
         client.setRequestPause(delay);
 
         client.connect();
-        client.processRequest();
+        try {
+            client.processRequest();
+        } catch (IOException ioe) {
+            // Failure is expected on some platforms (notably Windows) if the
+            // longer upload timeout is not used but record the exception in
+            // case it is useful for debugging purposes.
+            // The assertions below will check for the correct behaviour.
+            ioe.printStackTrace();
+        }
 
         if (useLongerUploadTimeout) {
             // Expected response is a 200 response.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org