You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ma...@apache.org on 2023/04/11 17:05:43 UTC
[tomcat] branch 10.1.x updated: Intermittent failure locally. Increase wait time.
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
The following commit(s) were added to refs/heads/10.1.x by this push:
new 5336f33466 Intermittent failure locally. Increase wait time.
5336f33466 is described below
commit 5336f33466ef7e96303742820545afa0c482466d
Author: Mark Thomas <ma...@apache.org>
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 269f112849..a3a0d10773 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: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org