Skip to content

Commit 70df440

Browse files
authored
Adjust the maximum resolution used in GeoHexVisitorTests (#102804) (#102820)
1 parent 4e326c5 commit 70df440

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ private void doTestGeometry(LongFunction<Geometry> h3ToGeometry, boolean hasArea
5151
// we ignore polar cells are they are problematic and do not keep the relationships
5252
long h3 = randomValueOtherThanMany(
5353
l -> l == H3.geoToH3(90, 0, H3.getResolution(l)) || l == H3.geoToH3(-90, 0, H3.getResolution(l)),
54-
() -> H3.geoToH3(GeoTestUtil.nextLatitude(), GeoTestUtil.nextLongitude(), randomIntBetween(2, 14))
54+
() -> H3.geoToH3(GeoTestUtil.nextLatitude(), GeoTestUtil.nextLongitude(), randomIntBetween(2, 13))
5555
);
5656
long centerChild = H3.childPosToH3(h3, 0);
5757
// children position 3 is chosen so we never use a polar polygon

0 commit comments

Comments
 (0)