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

commit 522d7ba5da7a03c25f9ae5b9085b93ec16b70ba9
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