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 2026/10/20 15:59:29 UTC
(tomcat) branch 11.0.x updated: Reduce time spent running tests
This is an automated email from the ASF dual-hosted git repository.
markt-asf pushed a commit to branch 11.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/11.0.x by this push:
new ce2f6f07fd Reduce time spent running tests
ce2f6f07fd is described below
commit ce2f6f07fdd63162d48845e153cf90742c0459b3
Author: Mark Thomas <ma...@apache.org>
AuthorDate: Tue Oct 20 16:59:07 2026 +0100
Reduce time spent running tests
---
.../apache/catalina/session/TestStandardSessionIntegration.java | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/test/org/apache/catalina/session/TestStandardSessionIntegration.java b/test/org/apache/catalina/session/TestStandardSessionIntegration.java
index c1de34c281..058bb2de30 100644
--- a/test/org/apache/catalina/session/TestStandardSessionIntegration.java
+++ b/test/org/apache/catalina/session/TestStandardSessionIntegration.java
@@ -32,6 +32,8 @@ import org.apache.catalina.Context;
import org.apache.catalina.ha.tcp.SimpleTcpCluster;
import org.apache.catalina.startup.Tomcat;
import org.apache.catalina.startup.TomcatBaseTest;
+import org.apache.catalina.tribes.ManagedChannel;
+import org.apache.catalina.tribes.TesterUtil;
import org.apache.catalina.tribes.group.GroupChannel;
import org.apache.catalina.tribes.transport.ReceiverBase;
import org.apache.tomcat.util.buf.ByteChunk;
@@ -63,7 +65,10 @@ public class TestStandardSessionIntegration extends TomcatBaseTest {
if (useClustering) {
SimpleTcpCluster cluster = new SimpleTcpCluster();
- ((ReceiverBase) ((GroupChannel) cluster.getChannel()).getChannelReceiver()).setHost("localhost");
+ GroupChannel channel = (GroupChannel) cluster.getChannel();
+ ((ReceiverBase) channel.getChannelReceiver()).setHost("localhost");
+ // Avoid discovering unrelated cluster members and waiting for their session state.
+ TesterUtil.addRandomDomain(new ManagedChannel[] { channel });
tomcat.getEngine().setCluster(cluster);
ctx.setDistributable(true);
ctx.setManager(ctx.getCluster().createManager(""));
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org