From aa83853278d2c511e46d4ff4c17c19419111b5c2 Mon Sep 17 00:00:00 2001 From: Harsha Vamsi Kalluri Date: Wed, 24 Jul 2024 22:18:56 -0700 Subject: [PATCH] Fix range test Signed-off-by: Harsha Vamsi Kalluri --- .../java/org/opensearch/index/query/RangeQueryBuilderTests.java | 1 - 1 file changed, 1 deletion(-) 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();