Skip to content

Commit a6e1d52

Browse files
craigtavernerjfreden
authored andcommitted
Reduce flakiness of cartesian centroid tests (elastic#127857)
1 parent a482e13 commit a6e1d52

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

muted-tests.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -240,9 +240,6 @@ tests:
240240
- class: org.elasticsearch.xpack.restart.MLModelDeploymentFullClusterRestartIT
241241
method: testDeploymentSurvivesRestart {cluster=OLD}
242242
issue: https://github.com/elastic/elasticsearch/issues/124160
243-
- class: org.elasticsearch.lucene.spatial.CartesianCentroidCalculatorTests
244-
method: testAddDifferentDimensionalType
245-
issue: https://github.com/elastic/elasticsearch/issues/124609
246243
- class: org.elasticsearch.multiproject.test.CoreWithMultipleProjectsClientYamlTestSuiteIT
247244
method: test {yaml=search.vectors/41_knn_search_byte_quantized/kNN search plus query}
248245
issue: https://github.com/elastic/elasticsearch/issues/124687

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -429,6 +429,7 @@ private Matcher<Double> matchDouble(double value) {
429429
double delta = (value > 1e28 || value < -1e28) ? Math.abs(value / 1e6)
430430
: (value > 1e20 || value < -1e20) ? Math.abs(value / 1e10)
431431
: (value > 1e8 || value < -1e8) ? Math.abs(value / 1e15)
432+
: (value > 1e5 || value < -1e5) ? DELTA * 10
432433
: DELTA;
433434
return closeTo(value, delta);
434435
}

0 commit comments

Comments
 (0)