mirror of https://github.com/apache/lucene.git
LUCENE-6308: fix test bug
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1670281 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
d3cfba9b29
commit
1d26d646cd
|
@ -376,8 +376,8 @@ public class TestSpans extends LuceneTestCase {
|
|||
assertEquals("first doc number", spanScorer.docID() + ctx.docBase, 11);
|
||||
float score = spanScorer.score();
|
||||
assertTrue("first doc score should be zero, " + score, score == 0.0f);
|
||||
} else {
|
||||
assertTrue("no second doc", spanScorer.nextDoc() == DocIdSetIterator.NO_MORE_DOCS);
|
||||
} else {
|
||||
assertTrue("no second doc", spanScorer == null || spanScorer.nextDoc() == DocIdSetIterator.NO_MORE_DOCS);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue