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:37 UTC

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

Repository: lucene-solr
Updated Branches:
  refs/heads/branch_7_5 d40e1d254 -> 886a2de03


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/886a2de0
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/886a2de0
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/886a2de0

Branch: refs/heads/branch_7_5
Commit: 886a2de03dc5fdb6399e53cd76104e26c57e1eef
Parents: d40e1d2
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:28 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/886a2de0/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/886a2de0/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);
+  }
 }