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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to