Skip to content

Commit 6d9434f

Browse files
committed
Fix test, more than one node may be connected.
Relates to elastic#37681
1 parent 68e5566 commit 6d9434f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

x-pack/plugin/ccr/src/test/java/org/elasticsearch/xpack/ccr/RestartIndexFollowingIT.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
import static java.util.Collections.singletonMap;
2424
import static org.elasticsearch.test.hamcrest.ElasticsearchAssertions.assertAcked;
2525
import static org.hamcrest.Matchers.equalTo;
26+
import static org.hamcrest.Matchers.greaterThanOrEqualTo;
2627

2728
public class RestartIndexFollowingIT extends CcrIntegTestCase {
2829

@@ -98,7 +99,7 @@ private void setupRemoteCluster() throws Exception {
9899
List<RemoteConnectionInfo> infos =
99100
followerClient().execute(RemoteInfoAction.INSTANCE, new RemoteInfoRequest()).get().getInfos();
100101
assertThat(infos.size(), equalTo(1));
101-
assertThat(infos.get(0).getNumNodesConnected(), equalTo(1));
102+
assertThat(infos.get(0).getNumNodesConnected(), greaterThanOrEqualTo(1));
102103
});
103104
}
104105

0 commit comments

Comments
 (0)