You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by kw...@apache.org on 2016/04/11 18:57:46 UTC

[2/2] lucene-solr:branch_6x: LUCENE-7201: Handle illegal rectangles during testing.

LUCENE-7201: Handle illegal rectangles during testing.


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

Branch: refs/heads/branch_6x
Commit: a03c0b806db0c6cd54fcf03abfc0ff86ffb944f1
Parents: cf6c9c7
Author: Karl Wright <Da...@gmail.com>
Authored: Mon Apr 11 12:55:21 2016 -0400
Committer: Karl Wright <Da...@gmail.com>
Committed: Mon Apr 11 12:57:37 2016 -0400

----------------------------------------------------------------------
 .../src/test/org/apache/lucene/spatial3d/TestGeo3DPoint.java   | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/a03c0b80/lucene/spatial3d/src/test/org/apache/lucene/spatial3d/TestGeo3DPoint.java
----------------------------------------------------------------------
diff --git a/lucene/spatial3d/src/test/org/apache/lucene/spatial3d/TestGeo3DPoint.java b/lucene/spatial3d/src/test/org/apache/lucene/spatial3d/TestGeo3DPoint.java
index 20302b4..deb3587 100644
--- a/lucene/spatial3d/src/test/org/apache/lucene/spatial3d/TestGeo3DPoint.java
+++ b/lucene/spatial3d/src/test/org/apache/lucene/spatial3d/TestGeo3DPoint.java
@@ -560,7 +560,11 @@ public class TestGeo3DPoint extends LuceneTestCase {
       case 2: {
         // Rectangles
         final Rectangle r = GeoTestUtil.nextBox();
-        return Geo3DPoint.newBoxQuery(field, r.minLat, r.maxLat, r.minLon, r.maxLon);
+        try {
+          return Geo3DPoint.newBoxQuery(field, r.minLat, r.maxLat, r.minLon, r.maxLon);
+        } catch (IllegalArgumentException e) {
+          continue;
+        }
       }
 
       case 3: {