From e8eb0fa3129d54af23db31d3ddce3b2ac75d774a Mon Sep 17 00:00:00 2001 From: jaymode Date: Tue, 5 Jan 2016 13:37:43 -0500 Subject: [PATCH] test: only specify the XPackPlugin once Original commit: elastic/x-pack-elasticsearch@46249d54c6dce8b7cfe27bb7a0657ad9c4bc5dc3 --- .../shield/authc/ldap/LdapUserSearchSessionFactoryTests.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/elasticsearch/x-pack/shield/src/test/java/org/elasticsearch/shield/authc/ldap/LdapUserSearchSessionFactoryTests.java b/elasticsearch/x-pack/shield/src/test/java/org/elasticsearch/shield/authc/ldap/LdapUserSearchSessionFactoryTests.java index 5daee36d81d..f5e74d9ee47 100644 --- a/elasticsearch/x-pack/shield/src/test/java/org/elasticsearch/shield/authc/ldap/LdapUserSearchSessionFactoryTests.java +++ b/elasticsearch/x-pack/shield/src/test/java/org/elasticsearch/shield/authc/ldap/LdapUserSearchSessionFactoryTests.java @@ -37,6 +37,7 @@ import org.junit.Before; import java.nio.file.Path; import java.text.MessageFormat; import java.util.Arrays; +import java.util.Collections; import java.util.List; import java.util.Locale; import java.util.Map; @@ -513,7 +514,7 @@ public class LdapUserSearchSessionFactoryTests extends LdapTestCase { } builder.put("path.home", createTempDir()); - try (Node node = new MockNode(builder.build(), Version.CURRENT, Arrays.asList(XPackPlugin.class, XPackPlugin.class))) { + try (Node node = new MockNode(builder.build(), Version.CURRENT, Collections.singletonList(XPackPlugin.class))) { node.start(); } }