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

markt pushed a commit to branch 10.1.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git

commit c42fdbb4dcc0874de2033ac61a8f68f0bb59f346
Author: Mark Thomas <ma...@apache.org>
AuthorDate: Thu Apr 6 16:29:31 2023 +0100

    Align with 9.0.x
---
 test/org/apache/tomcat/websocket/server/TestSlowClient.java | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/test/org/apache/tomcat/websocket/server/TestSlowClient.java 
b/test/org/apache/tomcat/websocket/server/TestSlowClient.java
index d5d05d81a4..4a093149c5 100644
--- a/test/org/apache/tomcat/websocket/server/TestSlowClient.java
+++ b/test/org/apache/tomcat/websocket/server/TestSlowClient.java
@@ -75,6 +75,11 @@ public class TestSlowClient extends WebSocketBaseTest {
         // BZ 64848 (non-container thread variant)
         // Confirm there are no waiting processors
         AbstractProtocol<?> protocol = (AbstractProtocol<?>) 
tomcat.getConnector().getProtocolHandler();
+        count = 0;
+        while (protocol.getWaitingProcessorCount() > 0 && count < 200) {
+            Thread.sleep(100);
+            count++;
+        }
         Assert.assertEquals(0, protocol.getWaitingProcessorCount());
     }
 


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

Reply via email to