Skip to content

Commit

Permalink
Fix flaky testGeoHexGridBucket (#632)
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Bogan <[email protected]>
(cherry picked from commit ab578ae)
  • Loading branch information
ryanbogan authored and github-actions[bot] committed Mar 28, 2024
1 parent 106d1d6 commit 3c1167a
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 3c1167a

Please sign in to comment.