Skip to content

Commit

Permalink
move heavy test to IT
Browse files Browse the repository at this point in the history
Signed-off-by: Mikhail Khludnev <mkhl@apache.org>
  • Loading branch information
mkhludnev committed Nov 26, 2024
1 parent c7382e3 commit 7aa15da
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,11 @@ public void testExceedMaxClauses() throws IOException {
assertTermsHitCount(indexName, "addr", toQuery, expectMatches);
assertTermsHitCount(indexName, "addr.idx", toQuery, expectMatches);
try { // error from mapper/parser
final SearchPhaseExecutionException ose = assertThrows(SearchPhaseExecutionException.class, () -> assertTermsHitCount(indexName, "addr.dv", toQuery, expectMatches));
assertTrue("exceeding on query building", ose.shardFailures()[0].getCause().getCause() instanceof IndexSearcher.TooManyClauses);
final SearchPhaseExecutionException ose = assertThrows(
SearchPhaseExecutionException.class,
() -> assertTermsHitCount(indexName, "addr.dv", toQuery, expectMatches)
);
assertTrue("exceeding on query building", ose.shardFailures()[0].getCause().getCause() instanceof IndexSearcher.TooManyClauses);
fail();
} catch (SearchPhaseExecutionException ose) {
assertTrue("exceeding on query building", ose.shardFailures()[0].getCause().getCause() instanceof IndexSearcher.TooManyClauses);
Expand Down

0 comments on commit 7aa15da

Please sign in to comment.