From 55b2111bdfa821f99c56d42b0e2cb0f181d87770 Mon Sep 17 00:00:00 2001 From: Martijn van Groningen Date: Thu, 16 Feb 2017 13:54:21 +0100 Subject: [PATCH] [TEST] wait number of nodes instead of green Original commit: elastic/x-pack-elasticsearch@d5e47d4e28434f348ede5f65783af70d58cb3223 --- .../ServerTransportFilterIntegrationTests.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/plugin/src/test/java/org/elasticsearch/xpack/security/transport/ServerTransportFilterIntegrationTests.java b/plugin/src/test/java/org/elasticsearch/xpack/security/transport/ServerTransportFilterIntegrationTests.java index 45e65d56262..1ca4f7a6670 100644 --- a/plugin/src/test/java/org/elasticsearch/xpack/security/transport/ServerTransportFilterIntegrationTests.java +++ b/plugin/src/test/java/org/elasticsearch/xpack/security/transport/ServerTransportFilterIntegrationTests.java @@ -5,11 +5,6 @@ */ package org.elasticsearch.xpack.security.transport; -import java.io.IOException; -import java.nio.file.Files; -import java.nio.file.Path; -import java.util.Arrays; - import org.elasticsearch.common.network.NetworkAddress; import org.elasticsearch.common.network.NetworkModule; import org.elasticsearch.common.settings.Settings; @@ -28,6 +23,11 @@ import org.elasticsearch.xpack.security.authc.file.FileRealm; import org.elasticsearch.xpack.ssl.SSLClientAuth; import org.junit.BeforeClass; +import java.io.IOException; +import java.nio.file.Files; +import java.nio.file.Path; +import java.util.Arrays; + import static java.util.Collections.singletonMap; import static org.elasticsearch.test.SecuritySettingsSource.getSSLSettingsForStore; import static org.elasticsearch.xpack.security.test.SecurityTestUtils.writeFile; @@ -103,7 +103,7 @@ public class ServerTransportFilterIntegrationTests extends SecurityIntegTestCase .build(); try (Node node = new MockNode(nodeSettings, Arrays.asList(XPackPlugin.class, TestZenDiscovery.TestPlugin.class))) { node.start(); - assertGreenClusterState(node.client()); + ensureStableCluster(cluster().size() + 1); } }