mirror of https://github.com/apache/lucene.git
SOLR-12028: Reduce test data set for TestLatLonPolygonShapeQueries.testRandomBig
This commit is contained in:
parent
2bad3c4985
commit
2b4717c6f4
|
@ -149,7 +149,7 @@ public abstract class BaseLatLonShapeTestCase extends LuceneTestCase {
|
||||||
doTestRandom(50000);
|
doTestRandom(50000);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void doTestRandom(int count) throws Exception {
|
protected void doTestRandom(int count) throws Exception {
|
||||||
int numShapes = atLeast(count);
|
int numShapes = atLeast(count);
|
||||||
ShapeType type = getShapeType();
|
ShapeType type = getShapeType();
|
||||||
|
|
||||||
|
|
|
@ -23,10 +23,8 @@ import org.apache.lucene.geo.Polygon;
|
||||||
import org.apache.lucene.geo.Polygon2D;
|
import org.apache.lucene.geo.Polygon2D;
|
||||||
import org.apache.lucene.geo.Tessellator;
|
import org.apache.lucene.geo.Tessellator;
|
||||||
import org.apache.lucene.index.PointValues.Relation;
|
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 */
|
/** 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 {
|
public class TestLatLonPolygonShapeQueries extends BaseLatLonShapeTestCase {
|
||||||
|
|
||||||
protected final PolygonValidator VALIDATOR = new PolygonValidator();
|
protected final PolygonValidator VALIDATOR = new PolygonValidator();
|
||||||
|
@ -99,4 +97,10 @@ public class TestLatLonPolygonShapeQueries extends BaseLatLonShapeTestCase {
|
||||||
return queryRelation == QueryRelation.INTERSECTS ? false : true;
|
return queryRelation == QueryRelation.INTERSECTS ? false : true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Nightly
|
||||||
|
@Override
|
||||||
|
public void testRandomBig() throws Exception {
|
||||||
|
doTestRandom(25000);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue