mirror of https://github.com/apache/lucene.git
LUCENE-8079: Fix test bug
This commit is contained in:
parent
071d9270d5
commit
32ffea6f2e
|
@ -154,7 +154,7 @@ public class TestTopFieldCollectorEarlyTermination extends LuceneTestCase {
|
|||
TopDocs td2 = collector2.topDocs();
|
||||
|
||||
assertFalse(collector1.isEarlyTerminated());
|
||||
if (trackMaxScore == false && paging == false && maxSegmentSize >= numHits && query instanceof MatchAllDocsQuery) {
|
||||
if (trackMaxScore == false && paging == false && maxSegmentSize > numHits && query instanceof MatchAllDocsQuery) {
|
||||
// Make sure that we sometimes early terminate
|
||||
assertTrue(collector2.isEarlyTerminated());
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue