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 df61a5ccd4 Intermittent failure locally. Increase wait time.
df61a5ccd4 is described below
commit df61a5ccd4e2677052565c18e59e6433755e217c
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 f7074a9009..9a812d2498 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]