LUCENE-8107: Fix test to not pick too large a distance. Committed on behalf of Ignacio Vera.

This commit is contained in:
Karl Wright 2018-01-02 06:38:13 -05:00
parent 6dd9dbf275
commit bdfbe433a3
1 changed files with 1 additions and 1 deletions

View File

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