Skip to content

Commit

Permalink
Fix flaky testGeoHexGridBucket (#632) (#649)
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 2c6c6d2 commit 0c48a0f
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 0c48a0f

Please sign in to comment.