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 50b61fd467 Additional debug logging after CI test failure
50b61fd467 is described below

commit 50b61fd467a48aa748d572cfe8725f6cb0137b50
Author: Mark Thomas <ma...@apache.org>
AuthorDate: Thu Jul 27 20:55:48 2023 +0100

    Additional debug logging after CI test failure
    
    Log the full trace before clearing it so the logs have the full picture
    of what was received.
---
 test/org/apache/coyote/http2/TestRfc9218.java | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/test/org/apache/coyote/http2/TestRfc9218.java 
b/test/org/apache/coyote/http2/TestRfc9218.java
index c42fd6ed7b..6cfd557022 100644
--- a/test/org/apache/coyote/http2/TestRfc9218.java
+++ b/test/org/apache/coyote/http2/TestRfc9218.java
@@ -43,6 +43,10 @@ public class TestRfc9218 extends Http2TestBase {
             readSimpleGetResponse();
         }
 
+        String trace = output.getTrace();
+        System.out.println(trace);
+        output.clearTrace();
+
         // At this point the connection window should be 1k
 
         // Process a request on stream 17. This should consume the connection 
window.
@@ -50,6 +54,8 @@ public class TestRfc9218 extends Http2TestBase {
         // 17-headers, 17-1k-body
         parser.readFrame();
         parser.readFrame();
+        trace = output.getTrace();
+        System.out.println(trace);
         output.clearTrace();
 
         // Send additional requests. Connection window is empty so only 
headers will be returned.
@@ -59,6 +65,8 @@ public class TestRfc9218 extends Http2TestBase {
         // 19-headers, 21-headers
         parser.readFrame();
         parser.readFrame();
+        trace = output.getTrace();
+        System.out.println(trace);
         output.clearTrace();
 
         // At this point 17, 19 and 21 are all blocked because the connection 
window is zero.
@@ -102,7 +110,7 @@ public class TestRfc9218 extends Http2TestBase {
         parser.readFrame();
         parser.readFrame();
 
-        String trace = output.getTrace();
+        trace = output.getTrace();
         Assert.assertTrue(trace.contains("17-Body-877\n"));
         trace = trace.replace("17-Body-877\n", "");
         Assert.assertTrue(trace.contains("19-Body-1170\n"));


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

Reply via email to