tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r1848411 - /tomcat/trunk/test/org/apache/coyote/http2/TestAsync.java
Date Fri, 07 Dec 2018 17:46:35 GMT
Author: markt
Date: Fri Dec  7 17:46:35 2018
New Revision: 1848411

URL: http://svn.apache.org/viewvc?rev=1848411&view=rev
Log:
Try and debug test intermittent failures

Modified:
    tomcat/trunk/test/org/apache/coyote/http2/TestAsync.java

Modified: tomcat/trunk/test/org/apache/coyote/http2/TestAsync.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/test/org/apache/coyote/http2/TestAsync.java?rev=1848411&r1=1848410&r2=1848411&view=diff
==============================================================================
--- tomcat/trunk/test/org/apache/coyote/http2/TestAsync.java (original)
+++ tomcat/trunk/test/org/apache/coyote/http2/TestAsync.java Fri Dec  7 17:46:35 2018
@@ -188,7 +188,14 @@ public class TestAsync extends Http2Test
         }
 
         while (!output.getTrace().endsWith("3-EndOfStream\n")) {
-            parser.readFrame(true);
+            try {
+                parser.readFrame(true);
+            } catch (IOException ioe) {
+                // Attempt to debug intermittent test failures
+                System.out.println(output.getTrace());
+                System.out.println(output.getBytesRead());
+                throw ioe;
+            }
         }
 
         // Check that the right number of bytes were received



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


Mime
View raw message