Fix test, more than one node may be connected.
Relates to
@@ -23,6 +23,7 @@ import java.util.Locale;
import static java.util.Collections.singletonMap;
import static org.elasticsearch.test.hamcrest.ElasticsearchAssertions.assertAcked;
import static org.hamcrest.Matchers.equalTo;
+import static org.hamcrest.Matchers.greaterThanOrEqualTo;
public class RestartIndexFollowingIT extends CcrIntegTestCase {
@@ -98,7 +99,7 @@ public class RestartIndexFollowingIT extends CcrIntegTestCase {
List<RemoteConnectionInfo> infos =
followerClient().execute(RemoteInfoAction.INSTANCE, new RemoteInfoRequest()).get().getInfos();
assertThat(infos.size(), equalTo(1));
- assertThat(infos.get(0).getNumNodesConnected(), equalTo(1));
+ assertThat(infos.get(0).getNumNodesConnected(), greaterThanOrEqualTo(1));
});
}
