Skip to content

Commit 8fb9bed

Browse files
committed
Fix compilation error
1 parent ba8d6d1 commit 8fb9bed

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

modules/transport-netty4/src/test/java/org/elasticsearch/transport/netty4/Netty4TransportMultiPortIntegrationIT.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
import org.elasticsearch.transport.Netty4Plugin;
3838

3939
import java.net.InetAddress;
40+
import java.util.Arrays;
4041
import java.util.Locale;
4142

4243
import static org.hamcrest.Matchers.allOf;
@@ -76,7 +77,7 @@ public void testThatTransportClientCanConnect() throws Exception {
7677
.put(Environment.PATH_HOME_SETTING.getKey(), createTempDir().toString())
7778
.build();
7879
// we have to test all the ports that the data node might be bound to
79-
try (TransportClient transportClient = new MockTransportClient(settings, Netty4Plugin.class)) {
80+
try (TransportClient transportClient = new MockTransportClient(settings, Arrays.asList(Netty4Plugin.class))) {
8081
for (int i = 0; i <= 10; i++) {
8182
transportClient.addTransportAddress(new TransportAddress(InetAddress.getByName("127.0.0.1"), randomPort + i));
8283
}

0 commit comments

Comments
 (0)