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:
Robert Muir 2013-07-30 20:19:15 +00:00
parent c78b4f80bb
commit e579cc68ea
1 changed files with 2 additions and 1 deletions

View File

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