Apache Lucene open-source search software
LUCENE-8107: Fix test to not pick too large a distance. Committed on behalf of Ignacio Vera.
Karl Wrightbdfbe433a35f
diff --git a/lucene/spatial3d/src/test/org/apache/lucene/spatial3d/geom/GeoExactCircleTest.java b/lucene/spatial3d/src/test/org/apache/lucene/spatial3d/geom/GeoExactCircleTest.javaindex 6f962142cd7..74a229e2c16 100644--- a/lucene/spatial3d/src/test/org/apache/lucene/spatial3d/geom/GeoExactCircleTest.java+++ b/lucene/spatial3d/src/test/org/apache/lucene/spatial3d/geom/GeoExactCircleTest.java@@ -104,7 +104,7 @@ public class GeoExactCircleTest extends RandomGeo3dShapeGenerator{}} while (Math.abs(planetModel.flattening) > 0.4);GeoPoint center = randomGeoPoint(planetModel);- double radius = random().nextDouble() * 0.9 * Math.PI;+ double radius = random().nextDouble() * 0.9 * planetModel.minimumPoleDistance;checkBearingPoint(planetModel, center, radius, 0);checkBearingPoint(planetModel, center, radius, 0.5 * Math.PI);checkBearingPoint(planetModel, center, radius, Math.PI);