LUCENE-8079: Fix test bug

This commit is contained in:
Jim Ferenczi 2017-12-06 09:01:21 +01:00
parent 071d9270d5
commit 32ffea6f2e
1 changed files with 1 additions and 1 deletions

View File

@ -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());
}