diff --git a/server/src/test/java/org/opensearch/index/query/RangeQueryBuilderTests.java b/server/src/test/java/org/opensearch/index/query/RangeQueryBuilderTests.java index c414dd27091f5..4dbd04f25a1b0 100644 --- a/server/src/test/java/org/opensearch/index/query/RangeQueryBuilderTests.java +++ b/server/src/test/java/org/opensearch/index/query/RangeQueryBuilderTests.java @@ -334,7 +334,6 @@ public void testDateRangeQueryFormat() throws IOException { assertThat(parsedQuery, instanceOf(IndexOrDocValuesQuery.class)); parsedQuery = ((IndexOrDocValuesQuery) parsedQuery).getIndexQuery(); assertThat(parsedQuery, instanceOf(ApproximateScoreQuery.class)); - assertThat(query, instanceOf(ApproximateScoreQuery.class)); Query originalQuery = ((ApproximateScoreQuery) parsedQuery).getOriginalQuery(); assertThat(originalQuery, instanceOf(PointRangeQuery.class)); Query approximateQuery = ((ApproximateScoreQuery) parsedQuery).getApproximationQuery();