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)); }