Skip to content

Commit

Permalink
Update test to reflect updated status after rewrite
Browse files Browse the repository at this point in the history
  • Loading branch information
kderusso committed Oct 31, 2024
1 parent 1d7897c commit ee28e5a
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -287,10 +287,6 @@ public void testThatTokensAreCorrectlyPruned() {
SearchExecutionContext searchExecutionContext = createSearchExecutionContext();
TextExpansionQueryBuilder queryBuilder = createTestQueryBuilder();
QueryBuilder rewrittenQueryBuilder = rewriteAndFetch(queryBuilder, searchExecutionContext);
if (queryBuilder.getTokenPruningConfig() == null) {
assertTrue(rewrittenQueryBuilder instanceof BoolQueryBuilder);
} else {
assertTrue(rewrittenQueryBuilder instanceof WeightedTokensQueryBuilder);
}
assertTrue(rewrittenQueryBuilder instanceof WeightedTokensQueryBuilder);
}
}

0 comments on commit ee28e5a

Please sign in to comment.