Skip to content

Commit

Permalink
Fix flaky testGeoHexGridBucket
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Bogan <[email protected]>
  • Loading branch information
ryanbogan committed Feb 15, 2024
1 parent c9ea964 commit 2aa7e40
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 2aa7e40

Please sign in to comment.