Fix random test TestDirectoryTaxonomyReader#TestDirectoryTaxonomyReader (#12790)

This commit is contained in:
Egor Potemkin 2023-11-09 19:08:44 +00:00 committed by GitHub
parent 41c19d8c7e
commit e1af4182d6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -701,7 +701,7 @@ public class TestDirectoryTaxonomyReader extends FacetTestCase {
threadIterations++) { threadIterations++) {
// length of the FacetLabel array that we are going to check // length of the FacetLabel array that we are going to check
int numOfOrdinalsToCheck = random().nextInt(allOrdinals.length); int numOfOrdinalsToCheck = RandomizedTest.randomIntBetween(1, allOrdinals.length);
int[] ordinals = new int[numOfOrdinalsToCheck]; int[] ordinals = new int[numOfOrdinalsToCheck];
FacetLabel[] path = new FacetLabel[numOfOrdinalsToCheck]; FacetLabel[] path = new FacetLabel[numOfOrdinalsToCheck];