Apache Lucene open-source search software
LUCENE-8088: Fix for random shape generator; committed on behalf of Ignacio Vera.
Karl Wrighta948adc390ef
diff --git a/lucene/spatial3d/src/test/org/apache/lucene/spatial3d/geom/RandomGeo3dShapeGenerator.java b/lucene/spatial3d/src/test/org/apache/lucene/spatial3d/geom/RandomGeo3dShapeGenerator.javaindex 4ff973ae845..cf3713cf142 100644--- a/lucene/spatial3d/src/test/org/apache/lucene/spatial3d/geom/RandomGeo3dShapeGenerator.java+++ b/lucene/spatial3d/src/test/org/apache/lucene/spatial3d/geom/RandomGeo3dShapeGenerator.java@@ -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));