LUCENE-8088: Fix for random shape generator; committed on behalf of Ignacio Vera.

This commit is contained in:
Karl Wright 2017-12-10 06:37:10 -05:00
parent dcb84701a4
commit a948adc390
1 changed files with 1 additions and 1 deletions

View File

@ -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));