Skip to content

Commit

Permalink
Fails 3/10000 times, so we're slightly less restrictive with numerica…
Browse files Browse the repository at this point in the history
…l errors (elastic#107679)

Fixes elastic#106126
  • Loading branch information
craigtaverner authored Apr 22, 2024
1 parent f7349e2 commit 01afd55
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,6 @@ public void testGeometryCollection() {
assertThat(calculator, matchesCentroid(addFromCalculator));
}

@AwaitsFix(bugUrl = "https://github.com/elastic/elasticsearch/issues/106126")
public void testAddDifferentDimensionalType() {
Point point = randomPoint();
Line line = randomLine();
Expand Down Expand Up @@ -428,7 +427,7 @@ private Matcher<Double> matchDouble(double value) {
// Most data (notably geo data) has values within bounds, and an absolute delta makes more sense.
double delta = (value > 1e28 || value < -1e28) ? Math.abs(value / 1e6)
: (value > 1e20 || value < -1e20) ? Math.abs(value / 1e10)
: (value > 1e10 || value < -1e10) ? Math.abs(value / 1e15)
: (value > 1e9 || value < -1e9) ? Math.abs(value / 1e15)
: DELTA;
return closeTo(value, delta);
}
Expand Down

0 comments on commit 01afd55

Please sign in to comment.