sumangala-patki commented on a change in pull request #3331:
URL: https://github.com/apache/hadoop/pull/3331#discussion_r698002347
##########
File path:
hadoop-tools/hadoop-azure/src/test/java/org/apache/hadoop/fs/azurebfs/ITestAbfsListStatusRemoteIterator.java
##########
@@ -75,7 +79,9 @@ public void testAbfsIteratorWithHasNext() throws Exception {
while (fsItr.hasNext()) {
FileStatus fileStatus = fsItr.next();
String pathStr = fileStatus.getPath().toString();
- fileNames.remove(pathStr);
+ if (!fileNames.remove(pathStr)) {
Review comment:
yes, added assertion and moved to separate method
--
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]