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

markt-asf 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 67d0dcc2fb Reduce time spent running tests
67d0dcc2fb is described below

commit 67d0dcc2fb9b10f16eb5c9c52d4ea94e22009b53
Author: Mark Thomas <[email protected]>
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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to