mirror of https://github.com/apache/lucene.git
Fix random test TestDirectoryTaxonomyReader#TestDirectoryTaxonomyReader (#12790)
This commit is contained in:
parent
41c19d8c7e
commit
e1af4182d6
|
@ -701,7 +701,7 @@ public class TestDirectoryTaxonomyReader extends FacetTestCase {
|
|||
threadIterations++) {
|
||||
|
||||
// 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];
|
||||
FacetLabel[] path = new FacetLabel[numOfOrdinalsToCheck];
|
||||
|
||||
|
|
Loading…
Reference in New Issue