From 8fb9bed07875badffedf56e599a14e9410ccaf9a Mon Sep 17 00:00:00 2001 From: Rory Hunter Date: Thu, 20 Feb 2020 14:39:44 +0000 Subject: [PATCH] Fix compilation error --- .../netty4/Netty4TransportMultiPortIntegrationIT.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/transport-netty4/src/test/java/org/elasticsearch/transport/netty4/Netty4TransportMultiPortIntegrationIT.java b/modules/transport-netty4/src/test/java/org/elasticsearch/transport/netty4/Netty4TransportMultiPortIntegrationIT.java index 52ad32efb56..999c6ea0ded 100644 --- a/modules/transport-netty4/src/test/java/org/elasticsearch/transport/netty4/Netty4TransportMultiPortIntegrationIT.java +++ b/modules/transport-netty4/src/test/java/org/elasticsearch/transport/netty4/Netty4TransportMultiPortIntegrationIT.java @@ -37,6 +37,7 @@ import org.elasticsearch.transport.MockTransportClient; import org.elasticsearch.transport.Netty4Plugin; import java.net.InetAddress; +import java.util.Arrays; import java.util.Locale; import static org.hamcrest.Matchers.allOf; @@ -76,7 +77,7 @@ public class Netty4TransportMultiPortIntegrationIT extends ESNetty4IntegTestCase .put(Environment.PATH_HOME_SETTING.getKey(), createTempDir().toString()) .build(); // we have to test all the ports that the data node might be bound to - try (TransportClient transportClient = new MockTransportClient(settings, Netty4Plugin.class)) { + try (TransportClient transportClient = new MockTransportClient(settings, Arrays.asList(Netty4Plugin.class))) { for (int i = 0; i <= 10; i++) { transportClient.addTransportAddress(new TransportAddress(InetAddress.getByName("127.0.0.1"), randomPort + i)); }