You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by nk...@apache.org on 2018/09/25 14:29:10 UTC

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

Repository: lucene-solr
Updated Branches:
  refs/heads/branch_7x eeaf6fc7d -> 9daeb1b01


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


Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/9daeb1b0
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/9daeb1b0
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/9daeb1b0

Branch: refs/heads/branch_7x
Commit: 9daeb1b01969b2da33d2ff52ffb4a83f5250fad0
Parents: eeaf6fc
Author: Nicholas Knize <nk...@gmail.com>
Authored: Tue Sep 25 09:26:20 2018 -0500
Committer: Nicholas Knize <nk...@gmail.com>
Committed: Tue Sep 25 09:29:01 2018 -0500

----------------------------------------------------------------------
 .../org/apache/lucene/document/BaseLatLonShapeTestCase.java  | 2 +-
 .../lucene/document/TestLatLonPolygonShapeQueries.java       | 8 ++++++--
 2 files changed, 7 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/9daeb1b0/lucene/sandbox/src/test/org/apache/lucene/document/BaseLatLonShapeTestCase.java
----------------------------------------------------------------------
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 6c7ade8..e4f7730 100644
--- a/lucene/sandbox/src/test/org/apache/lucene/document/BaseLatLonShapeTestCase.java
+++ b/lucene/sandbox/src/test/org/apache/lucene/document/BaseLatLonShapeTestCase.java
@@ -148,7 +148,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();
 

http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/9daeb1b0/lucene/sandbox/src/test/org/apache/lucene/document/TestLatLonPolygonShapeQueries.java
----------------------------------------------------------------------
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 ce76a82..03837a0 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 */
-@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);
+  }
 }