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

markt-asf 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 95f8dbc419 Remove test code. Fix intermittent test failure.
95f8dbc419 is described below

commit 95f8dbc4195545449a8978bad7cf32405dcef28f
Author: Mark Thomas <[email protected]>
AuthorDate: Tue Sep 1 13:32:56 2026 +0100

    Remove test code. Fix intermittent test failure.
---
 test/org/apache/coyote/http2/TestHttp2Section_5_1.java | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/test/org/apache/coyote/http2/TestHttp2Section_5_1.java 
b/test/org/apache/coyote/http2/TestHttp2Section_5_1.java
index 3e2d5ce5d9..41cd4005e6 100644
--- a/test/org/apache/coyote/http2/TestHttp2Section_5_1.java
+++ b/test/org/apache/coyote/http2/TestHttp2Section_5_1.java
@@ -143,12 +143,13 @@ public class TestHttp2Section_5_1 extends Http2TestBase {
         writeFrame(frameHeader, headersPayload);
 
         while (!output.getTrace().contains("5-EndOfStream") && 
!output.getTrace().contains("5-RST-")) {
-            System.out.println(output.getTrace());
             parser.readFrame();
         }
 
         String trace = output.getTrace();
         Assert.assertTrue(trace, trace.contains("3-RST-[" + 
Http2Error.STREAM_CLOSED.getCode() + "]"));
+        // Remove trace entries for stream 3 as they may be interleaved with 
those for stream 5
+        trace = trace.replaceAll("(?m)^3-.*(\\r?\\n)?", "");
         Assert.assertTrue(trace, trace.contains(getEmptyResponseTrace(5)));
     }
 


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to