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:01 UTC
[avro] branch master 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 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 <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");