This is an automated email from the ASF dual-hosted git repository. markt pushed a commit to branch 9.0.x in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/9.0.x by this push: new 28b4d7c8f1 Configure all channels rather than just the first channel 28b4d7c8f1 is described below commit 28b4d7c8f1bb281ef4dce15a0ee2cb788eb80294 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