[tomcat] 01/04: Fix a potential cause of intermittent test failure

2021-09-15 Thread markt
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

commit c3d9cf805487595cb0f4cda474c5cd1a91f097e9
Author: Mark Thomas 
AuthorDate: Wed Sep 15 13:47:35 2021 +0100

Fix a potential cause of intermittent test failure
---
 test/org/apache/coyote/http2/TestHttp2Section_5_3.java | 5 +
 1 file changed, 5 insertions(+)

diff --git a/test/org/apache/coyote/http2/TestHttp2Section_5_3.java 
b/test/org/apache/coyote/http2/TestHttp2Section_5_3.java
index d85c620..6001b3e 100644
--- a/test/org/apache/coyote/http2/TestHttp2Section_5_3.java
+++ b/test/org/apache/coyote/http2/TestHttp2Section_5_3.java
@@ -177,6 +177,11 @@ public class TestHttp2Section_5_3 extends Http2TestBase {
 output.clearTrace();
 }
 
+// Need to give both server side threads enough time to request an
+// allocation from the connection flow control window before sending
+// the next window update.
+Thread.sleep(1000);
+
 sendWindowUpdate(0, 1024);
 parser.readFrame(true);
 

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



[tomcat] 01/04: Fix a potential cause of intermittent test failure

2021-09-15 Thread markt
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

commit 60baeb2128d72416f13753ce7091b15a537343fa
Author: Mark Thomas 
AuthorDate: Wed Sep 15 13:47:35 2021 +0100

Fix a potential cause of intermittent test failure
---
 test/org/apache/coyote/http2/TestHttp2Section_5_3.java | 5 +
 1 file changed, 5 insertions(+)

diff --git a/test/org/apache/coyote/http2/TestHttp2Section_5_3.java 
b/test/org/apache/coyote/http2/TestHttp2Section_5_3.java
index d85c620..6001b3e 100644
--- a/test/org/apache/coyote/http2/TestHttp2Section_5_3.java
+++ b/test/org/apache/coyote/http2/TestHttp2Section_5_3.java
@@ -177,6 +177,11 @@ public class TestHttp2Section_5_3 extends Http2TestBase {
 output.clearTrace();
 }
 
+// Need to give both server side threads enough time to request an
+// allocation from the connection flow control window before sending
+// the next window update.
+Thread.sleep(1000);
+
 sendWindowUpdate(0, 1024);
 parser.readFrame(true);
 

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