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 {
157157 public void testRandomGeoCollectionQuery () throws Exception {
158158 // Create a random geometry collection to index.
159159 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 );
162161 List <Geometry > indexGeometries = new ArrayList <>();
163162 for (Geometry geometry : randomIndexCollection ) {
164163 indexGeometries .add (geometry );
You can’t perform that action at this time.
0 commit comments