mirror of https://github.com/apache/lucene.git
fix test bug
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1642415 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
46e8f846c5
commit
9d35397ad5
|
@ -66,7 +66,7 @@ public class TestArrayUtil extends LuceneTestCase {
|
|||
final Random rnd = random();
|
||||
final int num = atLeast(10000);
|
||||
for (int iter = 0; iter < num; iter++) {
|
||||
final int minTargetSize = rnd.nextInt(Integer.MAX_VALUE);
|
||||
final int minTargetSize = rnd.nextInt(ArrayUtil.MAX_ARRAY_LENGTH);
|
||||
final int elemSize = rnd.nextInt(11);
|
||||
final int v = ArrayUtil.oversize(minTargetSize, elemSize);
|
||||
assertTrue(v >= minTargetSize);
|
||||
|
|
Loading…
Reference in New Issue