Skip to content

armgit / solr

Public Imported from GitHub
0

Apache Solr open-source search software

SOLR-12028: Reduce test data set for TestLatLonPolygonShapeQueries.testRandomBig

Nicholas Knize2b4717c6f4e7
diff --git a/lucene/sandbox/src/test/org/apache/lucene/document/BaseLatLonShapeTestCase.java b/lucene/sandbox/src/test/org/apache/lucene/document/BaseLatLonShapeTestCase.java
index 191e2cbf691..7af5177ceaa 100644
--- a/lucene/sandbox/src/test/org/apache/lucene/document/BaseLatLonShapeTestCase.java
+++ b/lucene/sandbox/src/test/org/apache/lucene/document/BaseLatLonShapeTestCase.java
@@ -149,7 +149,7 @@ public abstract class BaseLatLonShapeTestCase extends LuceneTestCase {
doTestRandom(50000);
}
- private void doTestRandom(int count) throws Exception {
+ protected void doTestRandom(int count) throws Exception {
int numShapes = atLeast(count);
ShapeType type = getShapeType();
diff --git a/lucene/sandbox/src/test/org/apache/lucene/document/TestLatLonPolygonShapeQueries.java b/lucene/sandbox/src/test/org/apache/lucene/document/TestLatLonPolygonShapeQueries.java
index ce76a82c8dc..03837a0f029 100644
--- a/lucene/sandbox/src/test/org/apache/lucene/document/TestLatLonPolygonShapeQueries.java
+++ b/lucene/sandbox/src/test/org/apache/lucene/document/TestLatLonPolygonShapeQueries.java
@@ -23,10 +23,8 @@ import org.apache.lucene.geo.Polygon;
import org.apache.lucene.geo.Polygon2D;
import org.apache.lucene.geo.Tessellator;
import org.apache.lucene.index.PointValues.Relation;
-import org.apache.lucene.util.LuceneTestCase;
/** random bounding box and polygon query tests for random indexed {@link Polygon} types */
[email protected](bugUrl="https://issues.apache.org/jira/browse/SOLR-12028") // 6-Sep-2018
public class TestLatLonPolygonShapeQueries extends BaseLatLonShapeTestCase {
protected final PolygonValidator VALIDATOR = new PolygonValidator();
@@ -99,4 +97,10 @@ public class TestLatLonPolygonShapeQueries extends BaseLatLonShapeTestCase {
return queryRelation == QueryRelation.INTERSECTS ? false : true;
}
}
+
+ @Nightly
+ @Override
+ public void testRandomBig() throws Exception {
+ doTestRandom(25000);
+ }
}