Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosdelest committed Apr 16, 2024
1 parent 7c42501 commit faef7e2
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,10 @@ public void testIngestWithMultipleModelTypes() throws IOException {
assertThat(simulatedDocs, hasSize(2));
assertEquals(inferenceServiceModelId, MapHelper.dig("doc._source.ml.model_id", simulatedDocs.get(0)));
var sparseEmbedding = (Map<String, Double>) MapHelper.dig("doc._source.ml.body", simulatedDocs.get(0));
assertEquals(Double.valueOf(2.0), sparseEmbedding.get("feature_1"));
assertEquals(Double.valueOf(1.0), sparseEmbedding.get("1"));
assertEquals(inferenceServiceModelId, MapHelper.dig("doc._source.ml.model_id", simulatedDocs.get(1)));
sparseEmbedding = (Map<String, Double>) MapHelper.dig("doc._source.ml.body", simulatedDocs.get(1));
assertEquals(Double.valueOf(2.0), sparseEmbedding.get("feature_1"));
assertEquals(Double.valueOf(1.0), sparseEmbedding.get("1"));
}

{
Expand Down

0 comments on commit faef7e2

Please sign in to comment.