Skip to content

Commit ce820e5

Browse files
Slightly more generous assertions for Cartesian tests (#115658) (#115669)
1 parent b6c921f commit ce820e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/src/test/java/org/elasticsearch/lucene/spatial/CentroidCalculatorTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -428,7 +428,7 @@ private Matcher<Double> matchDouble(double value) {
428428
// Most data (notably geo data) has values within bounds, and an absolute delta makes more sense.
429429
double delta = (value > 1e28 || value < -1e28) ? Math.abs(value / 1e6)
430430
: (value > 1e20 || value < -1e20) ? Math.abs(value / 1e10)
431-
: (value > 1e9 || value < -1e9) ? Math.abs(value / 1e15)
431+
: (value > 1e8 || value < -1e8) ? Math.abs(value / 1e15)
432432
: DELTA;
433433
return closeTo(value, delta);
434434
}

0 commit comments

Comments
 (0)