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:
Michael McCandless 2014-11-29 10:37:55 +00:00
parent 46e8f846c5
commit 9d35397ad5
1 changed files with 1 additions and 1 deletions

View File

@ -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);