LUCENE-6697: fix test bug

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1694809 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael McCandless 2015-08-08 15:16:34 +00:00
parent b4aafbb606
commit 8958a1afff
1 changed files with 1 additions and 1 deletions

View File

@ -124,7 +124,7 @@ public class TestRangeTree extends LuceneTestCase {
// We rely on docID order:
iwc.setMergePolicy(newLogMergePolicy());
int maxPointsInLeaf = TestUtil.nextInt(random(), 16, 2048);
int maxPointsSortInHeap = TestUtil.nextInt(random(), 1024, 1024*1024);
int maxPointsSortInHeap = TestUtil.nextInt(random(), maxPointsInLeaf, 1024*1024);
Codec codec = TestUtil.alwaysDocValuesFormat(new RangeTreeDocValuesFormat(maxPointsInLeaf, maxPointsSortInHeap));
iwc.setCodec(codec);
RandomIndexWriter w = new RandomIndexWriter(random(), dir, iwc);