rishabhdaim commented on code in PR #2261:
URL: https://github.com/apache/jackrabbit-oak/pull/2261#discussion_r2066224347


##########
oak-blob-plugins/src/test/java/org/apache/jackrabbit/oak/plugins/blob/UploadStagingCacheTest.java:
##########
@@ -358,7 +359,9 @@ public void testGetAllIdentifiers() throws Exception {
 
         // Check getAllIdentifiers
         Iterator<String> idsIter = stagingCache.getAllIdentifiers();
-        assertEquals(ID_PREFIX + 0, Iterators.getOnlyElement(idsIter));
+        final List<String> idsList = ListUtils.toList(idsIter);

Review Comment:
   converted the Iterator to list because it can only be iterated once.



-- 
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: oak-dev-unsubscr...@jackrabbit.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to