This is an automated email from the ASF dual-hosted git repository.
markt-asf pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/main by this push:
new dd16f43287 Reduce time spent running tests
dd16f43287 is described below
commit dd16f432876481e1d5647a31a80d294fdfc1479e
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]