mirror of https://github.com/apache/lucene.git
LUCENE-8350: Fix for time-out in RandomGeoPolygonTests
This commit is contained in:
parent
417940cdd7
commit
36b7cdde06
|
@ -120,11 +120,12 @@ public class RandomGeoPolygonTest extends RandomGeo3dShapeGenerator {
|
|||
referencePoint = randomGeoPoint(planetModel);
|
||||
}
|
||||
final int n = random().nextInt(4) + 4;
|
||||
final List<GeoPoint> points = new ArrayList<>(n);
|
||||
|
||||
List<GeoPoint> orderedPoints = null;
|
||||
GeoPolygon polygon = null;
|
||||
GeoPolygon largePolygon = null;
|
||||
do {
|
||||
final List<GeoPoint> points = new ArrayList<>(n);
|
||||
double maxDistance = random().nextDouble() * limitDistance;
|
||||
//if distance is too small we can fail
|
||||
//building the polygon.
|
||||
|
|
Loading…
Reference in New Issue