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

markt 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 185b023b44 Configure all channels rather than just the first channel
185b023b44 is described below

commit 185b023b442e8b24d9c9e68298655690d09b00f9
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

Reply via email to