test: only specify the XPackPlugin once

Original commit: elastic/x-pack-elasticsearch@46249d54c6
This commit is contained in:
jaymode 2016-01-05 13:37:43 -05:00
parent 852aac0b9c
commit e8eb0fa312
1 changed files with 2 additions and 1 deletions

View File

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