mirror of
https://github.com/apache/lucene.git
synced 2025-02-09 11:35:14 +00:00
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 Random rnd = random();
|
||||||
final int num = atLeast(10000);
|
final int num = atLeast(10000);
|
||||||
for (int iter = 0; iter < num; iter++) {
|
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 elemSize = rnd.nextInt(11);
|
||||||
final int v = ArrayUtil.oversize(minTargetSize, elemSize);
|
final int v = ArrayUtil.oversize(minTargetSize, elemSize);
|
||||||
assertTrue(v >= minTargetSize);
|
assertTrue(v >= minTargetSize);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user