Skip to content

Commit 818d31a

Browse files
authored
Making sure we never have zero backing indices (elastic#130945)
1 parent cec4ced commit 818d31a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

x-pack/plugin/deprecation/src/test/java/org/elasticsearch/xpack/deprecation/DataStreamDeprecationCheckerTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ public void testOldIndicesCheck() {
7575

7676
public void testOldIndicesCheckWithOnlyNewIndices() {
7777
// This tests what happens when any old indices that we have are closed. We expect no deprecation warning.
78-
int newOpenIndexCount = randomIntBetween(0, 100);
78+
int newOpenIndexCount = randomIntBetween(1, 100);
7979
int newClosedIndexCount = randomIntBetween(0, 100);
8080

8181
Map<String, IndexMetadata> nameToIndexMetadata = new HashMap<>();

0 commit comments

Comments
 (0)