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 79e654a869 Intermittent failure locally. Increase wait time.
79e654a869 is described below
commit 79e654a869d2effba562b0076d37b1d6783ce4e6
Author: Mark Thomas <[email protected]>
AuthorDate: Tue Apr 11 18:05:19 2023 +0100
Intermittent failure locally. Increase wait time.
---
.../websocket/server/TestWsRemoteEndpointImplServerDeadlock.java | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git
a/test/org/apache/tomcat/websocket/server/TestWsRemoteEndpointImplServerDeadlock.java
b/test/org/apache/tomcat/websocket/server/TestWsRemoteEndpointImplServerDeadlock.java
index de49113382..986b35cdeb 100644
---
a/test/org/apache/tomcat/websocket/server/TestWsRemoteEndpointImplServerDeadlock.java
+++
b/test/org/apache/tomcat/websocket/server/TestWsRemoteEndpointImplServerDeadlock.java
@@ -134,7 +134,9 @@ public class TestWsRemoteEndpointImplServerDeadlock extends
WebSocketBaseTest {
Object state = f.get(Bug66508Endpoint.serverSession);
int count = 0;
long start = System.nanoTime();
- while (!"CLOSED".equals(state.toString()) && count < 100) {
+ // Send times out after 20s so test should complete in less than that.
Allow large margin as VMs can sometimes
+ // be slow when running tests.
+ while (!"CLOSED".equals(state.toString()) && count < 190) {
count++;
Thread.sleep(100);
state = f.get(Bug66508Endpoint.serverSession);
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]