You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@avro.apache.org by rs...@apache.org on 2022/06/21 10:21:48 UTC

[avro] branch branch-1.11 updated: AVRO-3537: fix netty unit test (#1725)

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

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


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

commit 0bd6fcc72d98318be1a58fd140d0d1118b8483b2
Author: clesaec <51...@users.noreply.github.com>
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");