From 8958a1afffa19fd2b0f5ee48899b9afb92dcb36b Mon Sep 17 00:00:00 2001 From: Michael McCandless Date: Sat, 8 Aug 2015 15:16:34 +0000 Subject: [PATCH] LUCENE-6697: fix test bug git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1694809 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/test/org/apache/lucene/rangetree/TestRangeTree.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lucene/sandbox/src/test/org/apache/lucene/rangetree/TestRangeTree.java b/lucene/sandbox/src/test/org/apache/lucene/rangetree/TestRangeTree.java index e9a0154e141..a632bc9f211 100644 --- a/lucene/sandbox/src/test/org/apache/lucene/rangetree/TestRangeTree.java +++ b/lucene/sandbox/src/test/org/apache/lucene/rangetree/TestRangeTree.java @@ -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);