Skip to content

Commit 2e83914

Browse files
authored
Fix GeoGridTilerTestCase (#84164) (#84261)
The test is failing now because in #84051, we are not failing in polygons when we can compute the signed area and the error has been moved to the indexer. # Conflicts: # x-pack/plugin/spatial/src/test/java/org/elasticsearch/xpack/spatial/search/aggregations/bucket/geogrid/GeoGridTilerTestCase.java
1 parent 94863f3 commit 2e83914

File tree

1 file changed

+1
-2
lines changed
  • x-pack/plugin/spatial/src/test/java/org/elasticsearch/xpack/spatial/search/aggregations/bucket/geogrid

1 file changed

+1
-2
lines changed

x-pack/plugin/spatial/src/test/java/org/elasticsearch/xpack/spatial/search/aggregations/bucket/geogrid/GeoGridTilerTestCase.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,14 +145,13 @@ public void testGeoGridSetValuesBoundingBoxes_coversAllLongitudeValues() throws
145145
assertThat(numBuckets, equalTo(expected));
146146
}
147147

148-
@AwaitsFix(bugUrl = "https://github.com/elastic/elasticsearch/issues/84152")
149148
public void testGeoGridSetValuesBoundingBoxes_UnboundedGeoShapeCellValues() throws Exception {
150149
for (int i = 0; i < 1000; i++) {
151150
int precision = randomIntBetween(0, 3);
152151
GeoShapeIndexer indexer = new GeoShapeIndexer(true, "test");
153152
Geometry geometry = indexer.prepareForIndexing(randomValueOtherThanMany(g -> {
154153
try {
155-
indexer.prepareForIndexing(g);
154+
indexer.indexShape(indexer.prepareForIndexing(g));
156155
return false;
157156
} catch (Exception e) {
158157
return true;

0 commit comments

Comments
 (0)