Skip to content

armgit / solr

Public Imported from GitHub
0

Apache Solr open-source search software

LUCENE-6895: fix test bug

Michael McCandless7307bb7ebaa0
diff --git a/lucene/spatial3d/src/test/org/apache/lucene/geo3d/TestGeo3DPointField.java b/lucene/spatial3d/src/test/org/apache/lucene/geo3d/TestGeo3DPointField.java
index 7ef605e114b..64e92a42a89 100644
--- a/lucene/spatial3d/src/test/org/apache/lucene/geo3d/TestGeo3DPointField.java
+++ b/lucene/spatial3d/src/test/org/apache/lucene/geo3d/TestGeo3DPointField.java
@@ -75,7 +75,7 @@ public class TestGeo3DPointField extends LuceneTestCase {
private static Codec getCodec() {
if (Codec.getDefault().getName().equals("Lucene60")) {
int maxPointsInLeafNode = TestUtil.nextInt(random(), 16, 2048);
- double maxMBSortInHeap = 0.1 + (3*random().nextDouble());
+ double maxMBSortInHeap = 3.0 + (3*random().nextDouble());
if (VERBOSE) {
System.out.println("TEST: using Lucene60DimensionalFormat with maxPointsInLeafNode=" + maxPointsInLeafNode + " and maxMBSortInHeap=" + maxMBSortInHeap);
}