Skip to content

armgit / solr

Public Imported from GitHub
0

Apache Solr open-source search software

LUCENE-6822: Spatial Geo3d: Lower test threshold to satisfy Within predicate.

David Wayne Smiley3d5a4af5860f
diff --git a/lucene/spatial/src/test/org/apache/lucene/spatial/spatial4j/Geo3dShapeRectRelationTestCase.java b/lucene/spatial/src/test/org/apache/lucene/spatial/spatial4j/Geo3dShapeRectRelationTestCase.java
index 42bc2e2a5f2..e0e7bcef35b 100644
--- a/lucene/spatial/src/test/org/apache/lucene/spatial/spatial4j/Geo3dShapeRectRelationTestCase.java
+++ b/lucene/spatial/src/test/org/apache/lucene/spatial/spatial4j/Geo3dShapeRectRelationTestCase.java
@@ -103,8 +103,9 @@ public abstract class Geo3dShapeRectRelationTestCase extends RandomizedShapeTest
return 20;
}
+ // producing "within" cases in Geo3D based on our random shapes doesn't happen often. It'd be nice to increase this.
protected int getWithinMinimum(int laps) {
- return 20;
+ return 2;
}
protected int getDisjointMinimum(int laps) {