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 f1c4117 Fix intermittent test failure
f1c4117 is described below
commit f1c411771bd4c307f26f381e84791fc4e3b08560
Author: Mark Thomas <[email protected]>
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 327bfde..1ef8a29 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: [email protected]
For additional commands, e-mail: [email protected]