mirror of https://github.com/apache/lucene.git
LUCENE-7201: Handle illegal rectangles during testing.
This commit is contained in:
parent
05dc90215a
commit
83bde55865
|
@ -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: {
|
||||
|
|
Loading…
Reference in New Issue