Skip to content

Commit

Permalink
Fix failure in IngestServiceTests > testValidateNotInUse (#79145)
Browse files Browse the repository at this point in the history
  • Loading branch information
danhermann authored Oct 14, 2021
1 parent 230e866 commit 49dda6c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ public void testValidateNotInUse() {
indices.put(indexName, indexMetadata);
}

int finalIndicesCount = randomIntBetween(0, 4);
int finalIndicesCount = randomIntBetween(defaultIndicesCount > 0 ? 0 : 1, 4);
List<String> finalIndices = new ArrayList<>();
for (int i = defaultIndicesCount; i < (finalIndicesCount + defaultIndicesCount); i++) {
String indexName = "index" + i;
Expand Down

0 comments on commit 49dda6c

Please sign in to comment.