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
commit a20d5bed710f852c84c6561f81431e55883e293e Author: Mark Thomas <ma...@apache.org> AuthorDate: Wed Feb 15 15:33:55 2023 +0000 Configure all channels rather than just the first channel Identified by Eclipse IDE warning after refactoring --- .../catalina/tribes/group/TestGroupChannelSenderConnections.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/org/apache/catalina/tribes/group/TestGroupChannelSenderConnections.java b/test/org/apache/catalina/tribes/group/TestGroupChannelSenderConnections.java index f78644756f..9e4ce212b4 100644 --- a/test/org/apache/catalina/tribes/group/TestGroupChannelSenderConnections.java +++ b/test/org/apache/catalina/tribes/group/TestGroupChannelSenderConnections.java @@ -98,7 +98,7 @@ public class TestGroupChannelSenderConnections extends LoggingBaseTest { public void testKeepAliveCount() throws Exception { log.info("Setting keep alive count to 0"); for (ManagedChannel channel : channels) { - ReplicationTransmitter t = (ReplicationTransmitter)channels[0].getChannelSender(); + ReplicationTransmitter t = (ReplicationTransmitter)channel.getChannelSender(); t.getTransport().setKeepAliveCount(0); } sendMessages(1000,15000); @@ -108,7 +108,7 @@ public class TestGroupChannelSenderConnections extends LoggingBaseTest { public void testKeepAliveTime() throws Exception { log.info("Setting keep alive count to 1 second"); for (ManagedChannel channel : channels) { - ReplicationTransmitter t = (ReplicationTransmitter)channels[0].getChannelSender(); + ReplicationTransmitter t = (ReplicationTransmitter)channel.getChannelSender(); t.getTransport().setKeepAliveTime(1000); } sendMessages(2000,15000); --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org