mirror of https://github.com/apache/lucene.git
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:
parent
6d27591ab5
commit
e07a433f21
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue