Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions muted-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -597,9 +597,6 @@ tests:
- class: org.elasticsearch.datastreams.DataStreamIndexSettingsProviderTests
method: testGetAdditionalIndexSettings
issue: https://github.com/elastic/elasticsearch/issues/135972
- class: org.elasticsearch.xpack.ml.integration.RegressionIT
method: testAliasFields
issue: https://github.com/elastic/elasticsearch/issues/137377
- class: org.elasticsearch.upgrades.SearchStatesIT
method: testCanMatch
issue: https://github.com/elastic/elasticsearch/issues/137687
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -630,8 +630,8 @@ public void testAliasFields() throws Exception {
assertThat(resultsObject.containsKey(predictionField), is(true));
assertThat(resultsObject.containsKey("is_training"), is(true));

int featureValue = (int) destDoc.get("field_1");
double predictionValue = (double) resultsObject.get(predictionField);
int featureValue = ((Number) destDoc.get("field_1")).intValue();
double predictionValue = ((Number) resultsObject.get(predictionField)).doubleValue();
predictionErrorSum += Math.abs(predictionValue - 2 * featureValue);
}
// We assert on the mean prediction error in order to reduce the probability
Expand Down