stefanvodita commented on code in PR #1004: URL: https://github.com/apache/lucene/pull/1004#discussion_r914274530
########## lucene/test-framework/src/java/org/apache/lucene/tests/util/LuceneTestCase.java: ########## @@ -2576,11 +2576,11 @@ public void assertDocValuesEquals(String info, IndexReader leftReader, IndexRead if (docID == NO_MORE_DOCS) { break; } - long ord; - while ((ord = leftValues.nextOrd()) != SortedSetDocValues.NO_MORE_ORDS) { + assertEquals(info, leftValues.docValueCount(), rightValues.docValueCount()); + for (int i = 0; i < leftValues.docValueCount(); i++) { + long ord = leftValues.nextOrd(); Review Comment: I went with the one-liner here. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org For additional commands, e-mail: issues-h...@lucene.apache.org