Skip to content

Commit 099753b

Browse files
committed
might be an integer
1 parent 602ae30 commit 099753b

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

muted-tests.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -516,9 +516,6 @@ tests:
516516
- class: org.elasticsearch.xpack.esql.action.EsqlActionBreakerIT
517517
method: testTopNPushedToLuceneOnSortedIndex
518518
issue: https://github.com/elastic/elasticsearch/issues/135939
519-
- class: org.elasticsearch.xpack.ml.integration.RegressionIT
520-
method: testAliasFields
521-
issue: https://github.com/elastic/elasticsearch/issues/135996
522519
- class: org.elasticsearch.xpack.security.authz.microsoft.MicrosoftGraphAuthzPluginIT
523520
method: testConcurrentAuthentication
524521
issue: https://github.com/elastic/elasticsearch/issues/135777

x-pack/plugin/ml/qa/native-multi-node-tests/src/javaRestTest/java/org/elasticsearch/xpack/ml/integration/RegressionIT.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -630,8 +630,8 @@ public void testAliasFields() throws Exception {
630630
assertThat(resultsObject.containsKey(predictionField), is(true));
631631
assertThat(resultsObject.containsKey("is_training"), is(true));
632632

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

0 commit comments

Comments
 (0)