mirror of https://github.com/apache/lucene.git
LUCENE-8088: Fix for random shape generator; committed on behalf of Ignacio Vera.
This commit is contained in:
parent
dcb84701a4
commit
a948adc390
|
@ -755,7 +755,7 @@ public class RandomGeo3dShapeGenerator extends LuceneTestCase {
|
|||
int vertexCount = random().nextInt(14) + 3;
|
||||
List<GeoPoint> geoPoints = points(vertexCount,planetModel, constraints);
|
||||
if (geoPoints.size() < 3){
|
||||
continue;
|
||||
break;
|
||||
}
|
||||
orderPoints(geoPoints);
|
||||
polDescription.add(new GeoPolygonFactory.PolygonDescription(geoPoints));
|
||||
|
|
Loading…
Reference in New Issue