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

This commit is contained in:
Nicholas Knize 2018-09-25 09:26:20 -05:00
parent 2bad3c4985
commit 2b4717c6f4
2 changed files with 7 additions and 3 deletions

View File

@ -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();

View File

@ -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 */
@LuceneTestCase.BadApple(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);
}
}