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 5cfcbf3  Need to clear trace once validated
5cfcbf3 is described below

commit 5cfcbf3045be472adde7b6f1c025f73df0cf6c3b
Author: Mark Thomas <ma...@apache.org>
AuthorDate: Fri Aug 21 21:22:13 2020 +0100

    Need to clear trace once validated
---
 test/org/apache/coyote/http2/TestCancelledUpload.java | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/test/org/apache/coyote/http2/TestCancelledUpload.java 
b/test/org/apache/coyote/http2/TestCancelledUpload.java
index 5376372..fa798c1 100644
--- a/test/org/apache/coyote/http2/TestCancelledUpload.java
+++ b/test/org/apache/coyote/http2/TestCancelledUpload.java
@@ -74,7 +74,7 @@ public class TestCancelledUpload extends Http2TestBase {
         parser.readFrame(true);
 
         // If reset is first frame received end test here
-        if (output.getTrace().startsWith("3-RST-[3]\\n")) {
+        if (output.getTrace().startsWith("3-RST-[3]\n")) {
             return;
         }
 
@@ -113,6 +113,7 @@ public class TestCancelledUpload extends Http2TestBase {
         Assert.assertEquals("3-Body-0\n" +
                 "3-EndOfStream\n",
                 output.getTrace());
+        output.clearTrace();
 
         // There must be a reset. There may be some WindowSize frames
         parser.readFrame(true);


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

Reply via email to