[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@e465b0f801
This commit is contained in:
parent
9fcb230d90
commit
c09430f3bf
|
@ -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<Class<? extends Plugin>> 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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue