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

rskraba pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/avro.git


The following commit(s) were added to refs/heads/master by this push:
     new 41c5a3710 AVRO-3537: fix netty unit test (#1725)
41c5a3710 is described below

commit 41c5a3710d03b26bad5e90d04bfc51d6d9e20d65
Author: clesaec <[email protected]>
AuthorDate: Tue Jun 21 12:20:56 2022 +0200

    AVRO-3537: fix netty unit test (#1725)
---
 .../apache/avro/ipc/netty/TestNettyTransceiverWhenFailsToConnect.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/lang/java/ipc-netty/src/test/java/org/apache/avro/ipc/netty/TestNettyTransceiverWhenFailsToConnect.java
 
b/lang/java/ipc-netty/src/test/java/org/apache/avro/ipc/netty/TestNettyTransceiverWhenFailsToConnect.java
index 1ce9dbe3d..61f0c6019 100644
--- 
a/lang/java/ipc-netty/src/test/java/org/apache/avro/ipc/netty/TestNettyTransceiverWhenFailsToConnect.java
+++ 
b/lang/java/ipc-netty/src/test/java/org/apache/avro/ipc/netty/TestNettyTransceiverWhenFailsToConnect.java
@@ -38,7 +38,7 @@ public class TestNettyTransceiverWhenFailsToConnect {
   @Test(expected = IOException.class)
   public void testNettyTransceiverReleasesNettyChannelOnFailingToConnect() 
throws Exception {
     try (ServerSocket serverSocket = new ServerSocket(0)) {
-      try (Transceiver t = new NettyTransceiver(new 
InetSocketAddress(serverSocket.getLocalPort()), 1, c -> {
+      try (Transceiver t = new NettyTransceiver(new 
InetSocketAddress(serverSocket.getLocalPort()), 0, c -> {
         channel = c;
       })) {
         Assert.fail("should have thrown an exception");

Reply via email to