Pārlūkot izejas kodu

Fix AutoFollowCoordinatorTests (#47808)

Introduced by #47721
Tanguy Leroux 6 gadi atpakaļ
vecāks
revīzija
7c5cd5f2b8

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

@@ -1088,7 +1088,7 @@ public class AutoFollowCoordinatorTests extends ESTestCase {
             .build();
 
         ClusterState remoteState = null;
-        final int nbLeaderIndices = randomInt(15);
+        final int nbLeaderIndices = randomIntBetween(1, 15);
         for (int i = 0; i < nbLeaderIndices; i++) {
             String indexName = "docs-" + i;
             if (remoteState == null) {