LUCENE-6271: remove nocommit from LTC

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/lucene6271@1670425 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Ryan Ernst 2015-03-31 19:00:35 +00:00
parent 07c20804b1
commit c82e9d47cd
1 changed files with 2 additions and 6 deletions

View File

@ -1984,12 +1984,8 @@ public abstract class LuceneTestCase extends Assert {
* checks docs + freqs + positions + payloads, sequentially
*/
public void assertDocsAndPositionsEnumEquals(String info, PostingsEnum leftDocs, PostingsEnum rightDocs) throws IOException {
if (leftDocs == null || rightDocs == null) {
// nocommit: this should now only be for term or field not existing, is this assert used in that way?
assertNull(leftDocs);
assertNull(rightDocs);
return;
}
assertNotNull(leftDocs);
assertNotNull(rightDocs);
assertEquals(info, -1, leftDocs.docID());
assertEquals(info, -1, rightDocs.docID());
int docid;