File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed
test/framework/src/main/java/org/elasticsearch/search/geo Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -157,8 +157,7 @@ public void testShapeFetchingPath() throws Exception {
157
157
public void testRandomGeoCollectionQuery () throws Exception {
158
158
// Create a random geometry collection to index.
159
159
GeometryCollection <Geometry > randomIndexCollection = GeometryTestUtils .randomGeometryCollectionWithoutCircle (false );
160
- org .apache .lucene .geo .Polygon randomPoly = GeoTestUtil .nextPolygon ();
161
- Polygon polygon = new Polygon (new LinearRing (randomPoly .getPolyLons (), randomPoly .getPolyLats ()));
160
+ Polygon polygon = GeometryTestUtils .randomPolygon (false );
162
161
List <Geometry > indexGeometries = new ArrayList <>();
163
162
for (Geometry geometry : randomIndexCollection ) {
164
163
indexGeometries .add (geometry );
You can’t perform that action at this time.
0 commit comments