Skip to content

Commit 79cc270

Browse files
authored
Making sure we never have zero backing indices (#130945) (#130952)
1 parent f683104 commit 79cc270

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
@@ -78,7 +78,7 @@ public void testOldIndicesCheck() {
7878

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

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

0 commit comments

Comments
 (0)