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


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

commit ea0a200fe29829bd88fb6fecb5549158896b68ea
Author: Mark Thomas <ma...@apache.org>
AuthorDate: Wed Sep 9 09:54:47 2020 +0100

    Fix intermittently failing test
    
    Writes as well as reads will break if the server closes the connection
---
 test/org/apache/coyote/http2/TestHttp2Limits.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/org/apache/coyote/http2/TestHttp2Limits.java 
b/test/org/apache/coyote/http2/TestHttp2Limits.java
index 633f403..327bfde 100644
--- a/test/org/apache/coyote/http2/TestHttp2Limits.java
+++ b/test/org/apache/coyote/http2/TestHttp2Limits.java
@@ -44,8 +44,8 @@ public class TestHttp2Limits extends Http2TestBase {
         http2Connect(false);
 
         for (int i = 0; i < 100; i++) {
-            sendSettings(0, false);
             try {
+                sendSettings(0, false);
                 parser.readFrame(true);
             } catch (IOException ioe) {
                 // Server closed connection before client has a chance to read


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

Reply via email to