Skip to content

Commit 7c5cd5f

Browse files
authored
Fix AutoFollowCoordinatorTests (#47808)
Introduced by #47721
1 parent 55f4988 commit 7c5cd5f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -1088,7 +1088,7 @@ public void testClosedIndicesAreNotAutoFollowed() {
10881088
.build();
10891089

10901090
ClusterState remoteState = null;
1091-
final int nbLeaderIndices = randomInt(15);
1091+
final int nbLeaderIndices = randomIntBetween(1, 15);
10921092
for (int i = 0; i < nbLeaderIndices; i++) {
10931093
String indexName = "docs-" + i;
10941094
if (remoteState == null) {

0 commit comments

Comments
 (0)