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

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


The following commit(s) were added to refs/heads/master by this push:
     new 6019533  Fix intermittent test failure
6019533 is described below

commit 6019533e651494c05dc879052ab69199af50a035
Author: Mark Thomas <ma...@apache.org>
AuthorDate: Fri Sep 11 12:42:41 2020 +0100

    Fix intermittent test failure
---
 test/org/apache/coyote/http2/TestHttp2Limits.java | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/test/org/apache/coyote/http2/TestHttp2Limits.java 
b/test/org/apache/coyote/http2/TestHttp2Limits.java
index 1e9644d..1be65cb 100644
--- a/test/org/apache/coyote/http2/TestHttp2Limits.java
+++ b/test/org/apache/coyote/http2/TestHttp2Limits.java
@@ -526,6 +526,13 @@ public class TestHttp2Limits extends Http2TestBase {
             // NIO2 can sometimes send window updates depending timing
             skipWindowSizeFrames();
 
+            // Async I/O can sometimes result in a stream closed reset before
+            // the enhance your calm reset
+            if ("3-RST-[5]\n".equals(output.getTrace())) {
+                output.clearTrace();
+                parser.readFrame(true);
+            }
+
             Assert.assertEquals("3-RST-[11]\n", output.getTrace());
             break;
         }


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

Reply via email to