mirror of https://github.com/apache/lucene.git
fix test not to generate nullreaders > 10, since it always asserts bulk reads from that position
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1508604 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
c78b4f80bb
commit
e579cc68ea
|
@ -541,7 +541,8 @@ public class TestPackedInts extends LuceneTestCase {
|
|||
}
|
||||
|
||||
public void testPackedIntsNull() {
|
||||
int size = _TestUtil.nextInt(random(), 0, 256);
|
||||
// must be > 10 for the bulk reads below
|
||||
int size = _TestUtil.nextInt(random(), 11, 256);
|
||||
Reader packedInts = new PackedInts.NullReader(size);
|
||||
assertEquals(0, packedInts.get(_TestUtil.nextInt(random(), 0, size - 1)));
|
||||
long[] arr = new long[size + 10];
|
||||
|
|
Loading…
Reference in New Issue