Apache Solr open-source search software
LUCENE-7201: Handle illegal rectangles during testing.
Karl Wright83bde55865f5
diff --git a/lucene/spatial3d/src/test/org/apache/lucene/spatial3d/TestGeo3DPoint.java b/lucene/spatial3d/src/test/org/apache/lucene/spatial3d/TestGeo3DPoint.javaindex 20302b40864..deb35878c01 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: {// Rectanglesfinal 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: {