This is an automated email from the ASF dual-hosted git repository.
markt pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/main by this push:
new 28493058c3 Make test more robust
28493058c3 is described below
commit 28493058c38776519576ac17223493d3d6c76f88
Author: Mark Thomas <[email protected]>
AuthorDate: Tue Apr 11 20:17:58 2023 +0100
Make test more robust
---
test/org/apache/coyote/http2/TestRfc9218.java | 15 ++++++++++++---
1 file changed, 12 insertions(+), 3 deletions(-)
diff --git a/test/org/apache/coyote/http2/TestRfc9218.java
b/test/org/apache/coyote/http2/TestRfc9218.java
index 85dd834eee..c42fd6ed7b 100644
--- a/test/org/apache/coyote/http2/TestRfc9218.java
+++ b/test/org/apache/coyote/http2/TestRfc9218.java
@@ -16,6 +16,8 @@
*/
package org.apache.coyote.http2;
+import java.io.IOException;
+
import org.junit.Assert;
import org.junit.Test;
@@ -144,9 +146,16 @@ public class TestRfc9218 extends Http2TestBase {
* with the remainder split equally between 17 and 21.
*/
sendWindowUpdate(0, 1024 * 8);
- parser.readFrame();
- parser.readFrame();
- parser.readFrame();
+ // Use try/catch as third read has been failing on some tests runs
+ try {
+ parser.readFrame();
+ parser.readFrame();
+ parser.readFrame();
+ } catch (IOException ioe) {
+ // Dump for debugging purposes
+ ioe.printStackTrace();
+ // Continue - we'll get trace dumped to stdout below
+ }
trace = output.getTrace();
System.out.println(trace);
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]