Skip to content

Commit

Permalink
Fix test failure elastic#106647
Browse files Browse the repository at this point in the history
  • Loading branch information
benwtrent committed Mar 22, 2024
1 parent 46b5596 commit d3fa101
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ public void testHitCountFromWeightDoesNotEarlyTerminate() throws IOException {

public void testCollectedHitCount() throws Exception {
Query query = new NonCountingTermQuery(new Term("string", "a1"));
int threshold = randomIntBetween(1, 10000);
int threshold = randomIntBetween(2, 10000);
// there's one doc matching the query: any totalHitsThreshold greater than or equal to 1 will not cause early termination
CollectorManager<PartialHitCountCollector, Result> collectorManager = createCollectorManager(new HitsThresholdChecker(threshold));
Result result = searcher.search(query, collectorManager);
Expand Down

0 comments on commit d3fa101

Please sign in to comment.