From c09430f3bf9fac523f531999fd1f1c5776d3b3bd Mon Sep 17 00:00:00 2001 From: David Roberts Date: Wed, 2 Aug 2017 09:51:03 +0100 Subject: [PATCH] [TEST] Fix ML licensing tests following change in core test framework (elastic/x-pack-elasticsearch#2152) The change made in elastic/elasticsearch#25986 means that half the time tests will use the NIO transport rather than the mock TCP transport. But the NIO plugin was not added to the TestXPackTransportClient. Original commit: elastic/x-pack-elasticsearch@e465b0f8012fd973a1c2247240005835d2318426 --- .../org/elasticsearch/xpack/TestXPackTransportClient.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugin/src/test/java/org/elasticsearch/xpack/TestXPackTransportClient.java b/plugin/src/test/java/org/elasticsearch/xpack/TestXPackTransportClient.java index 54b24497be0..9afc7b14c5d 100644 --- a/plugin/src/test/java/org/elasticsearch/xpack/TestXPackTransportClient.java +++ b/plugin/src/test/java/org/elasticsearch/xpack/TestXPackTransportClient.java @@ -9,6 +9,7 @@ import org.elasticsearch.client.transport.TransportClient; import org.elasticsearch.common.settings.Settings; import org.elasticsearch.plugins.Plugin; import org.elasticsearch.transport.MockTcpTransportPlugin; +import org.elasticsearch.transport.nio.NioTransportPlugin; import java.util.Arrays; import java.util.Collection; @@ -25,6 +26,7 @@ public class TestXPackTransportClient extends TransportClient { } public TestXPackTransportClient(Settings settings, Collection> plugins) { - super(settings, Settings.EMPTY, addPlugins(plugins, XPackPlugin.class, MockTcpTransportPlugin.class), null); + super(settings, Settings.EMPTY, addPlugins(plugins, XPackPlugin.class, NioTransportPlugin.class, MockTcpTransportPlugin.class), + null); } }