Skip to content

Commit

Permalink
Fix flaky testGeoHexGridBucket (#632) (#650)
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Bogan <[email protected]>
(cherry picked from commit ab578ae)

Co-authored-by: Ryan Bogan <[email protected]>
  • Loading branch information
opensearch-trigger-bot[bot] and ryanbogan authored Mar 28, 2024
1 parent 106d1d6 commit ae663a1
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,10 @@ public void testGeoHexGridBucket() throws Exception {

// Generate metadata for Test data
final var randomDocumentsForTesting = randomIntBetween(MIN_DOCUMENTS, MAX_DOCUMENTS);
final var randomPrecision = randomHexGridPrecision();

// Temporarily max for tests is set to 14, since there is a bug that fails at 15
// When bug is fixed, need to reset value to H3.MAX_H3_RES
final var randomPrecision = randomIntBetween(H3.MIN_H3_RES, H3.MAX_H3_RES - 1);

// Generate Test data
final Map<Point, String> pointStringMap = generateRandomPointH3CellMap(randomDocumentsForTesting, randomPrecision);
Expand Down

0 comments on commit ae663a1

Please sign in to comment.