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:
Michael McCandless 2015-03-31 09:02:08 +00:00
parent d3cfba9b29
commit 1d26d646cd
1 changed files with 2 additions and 2 deletions

View File

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