mirror of https://github.com/apache/lucene.git
LUCENE-7201: Handle illegal rectangles during testing.
This commit is contained in:
parent
cf6c9c78bc
commit
a03c0b806d
|
@ -560,7 +560,11 @@ public class TestGeo3DPoint extends LuceneTestCase {
|
||||||
case 2: {
|
case 2: {
|
||||||
// Rectangles
|
// Rectangles
|
||||||
final Rectangle r = GeoTestUtil.nextBox();
|
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: {
|
case 3: {
|
||||||
|
|
Loading…
Reference in New Issue