Skip to content

Commit

Permalink
Fix client-rest-high-level tests for ppc64le (opensearch-project#16089)
Browse files Browse the repository at this point in the history
* Fix client-rest-high-level tests for ppc64le

Signed-off-by: prachi-gaonkar <[email protected]>

* Fix client-rest-high-level tests for ppc64le

Signed-off-by: prachi-gaonkar <[email protected]>

---------

Signed-off-by: prachi-gaonkar <[email protected]>
  • Loading branch information
prachi-gaonkar authored Oct 2, 2024
1 parent 1ee858f commit 79a2ec1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@
public abstract class OpenSearchRestHighLevelClientTestCase extends OpenSearchRestTestCase {

protected static final String CONFLICT_PIPELINE_ID = "conflict_pipeline";
protected static final double DOUBLE_DELTA = 0.000001;

private static RestHighLevelClient restHighLevelClient;
private static boolean async = Booleans.parseBoolean(System.getProperty("tests.rest.async", "false"));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ public void testMetrics() throws IOException {

RankEvalRequest rankEvalRequest = new RankEvalRequest(spec, new String[] { "index", "index2" });
RankEvalResponse response = execute(rankEvalRequest, highLevelClient()::rankEval, highLevelClient()::rankEvalAsync);
assertEquals(expectedScores[i], response.getMetricScore(), Double.MIN_VALUE);
assertEquals(expectedScores[i], response.getMetricScore(), DOUBLE_DELTA);
i++;
}
}
Expand Down

0 comments on commit 79a2ec1

Please sign in to comment.