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]>
  • Loading branch information
ryanbogan authored Mar 28, 2024
1 parent 91789a8 commit ab578ae
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 ab578ae

Please sign in to comment.