Skip to content

Commit be4360a

Browse files
committed
addressing review
1 parent 762d33d commit be4360a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

hadoop-tools/hadoop-aws/src/test/java/org/apache/hadoop/fs/s3a/ITestS3AAWSCredentialsProvider.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,10 +164,12 @@ public void testAnonymousProvider() throws Exception {
164164
Path testFile = getCSVTestPath(conf);
165165
try (FileSystem fs = FileSystem.newInstance(testFile.toUri(), conf)) {
166166
assertNotNull("S3AFileSystem instance must not be null", fs);
167-
assertTrue(fs instanceof S3AFileSystem);
167+
assertTrue("FileSystem must be the instance of S3AFileSystem", fs instanceof S3AFileSystem);
168168
FileStatus stat = fs.getFileStatus(testFile);
169169
assertNotNull("FileStatus with qualified path must not be null", stat);
170-
assertEquals(testFile, stat.getPath());
170+
assertEquals(
171+
"The qualified path returned by getFileStatus should be same as the original file",
172+
testFile, stat.getPath());
171173
}
172174
}
173175

0 commit comments

Comments
 (0)