Skip to content

Commit

Permalink
fix assertion by removing deprecated function
Browse files Browse the repository at this point in the history
Signed-off-by: Dharin Shah <[email protected]>
  • Loading branch information
Dharin-shah committed Jan 28, 2024
1 parent 09257a3 commit f661895
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@

import org.apache.lucene.search.Explanation;
import org.apache.lucene.search.TotalHits;
import org.junit.Assert;
import org.opensearch.Version;
import org.opensearch.action.OriginalIndices;
import org.opensearch.common.document.DocumentField;
Expand Down Expand Up @@ -251,7 +252,7 @@ public void testSerializationDeserializationWithMatchedQueriesList() throws IOEx
SearchHit deserializedSearchHit = copyWriteable(searchHit, getNamedWriteableRegistry(), SearchHit::new, Version.V_2_12_0);
assertEquals(searchHit, deserializedSearchHit);
assertEquals(searchHit.getMatchedQueriesAndScores(), deserializedSearchHit.getMatchedQueriesAndScores());
assertEquals(searchHit.getMatchedQueries(), deserializedSearchHit.getMatchedQueries());
Assert.assertArrayEquals(searchHit.getMatchedQueries(), deserializedSearchHit.getMatchedQueries());
}

/**
Expand Down

0 comments on commit f661895

Please sign in to comment.