Fix TestDocIdSetBuilder.

You need the set to be very dense to return a FixedBitSet since we raised the threshold.


git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1633556 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Adrien Grand 2014-10-22 08:18:42 +00:00
parent 6d27591ab5
commit e07a433f21
1 changed files with 1 additions and 2 deletions

View File

@ -76,9 +76,8 @@ public class TestDocIdSetBuilder extends LuceneTestCase {
builder.or(new RoaringDocIdSet.Builder(maxDoc).add(doc).build().iterator());
}
for (int i = 0; i < numIterators; ++i) {
final int baseInc = 2 + random().nextInt(10);
RoaringDocIdSet.Builder b = new RoaringDocIdSet.Builder(maxDoc);
for (int doc = random().nextInt(10000); doc < maxDoc; doc += baseInc + random().nextInt(2000)) {
for (int doc = random().nextInt(1000); doc < maxDoc; doc += 1 + random().nextInt(1000)) {
b.add(doc);
ref.set(doc);
}