Skip to content

Commit 81a5133

Browse files
committed
fixes typos
1 parent 1c101a4 commit 81a5133

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,7 @@ public void testReadOnlyOperations() throws Throwable {
439439
policy(
440440
statement(false, S3_ALL_BUCKETS, S3_PATH_WRITE_OPERATIONS),
441441
STATEMENT_ALL_S3,
442-
STATEMENT_ALLOW_SSE_KMS_RW));
442+
STATEMENT_ALLOW_SSE_KMS_READ));
443443
Path path = methodPath();
444444
roleFS = (S3AFileSystem) path.getFileSystem(conf);
445445
// list the root path, expect happy

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

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -178,9 +178,8 @@ public void testUploadListByAge() throws Throwable {
178178
// least a second old
179179
describe("Sleeping 1 second then confirming upload still there");
180180
Thread.sleep(1000);
181-
LambdaTestUtils.eventually(5000, 1000, () -> {
182-
assertNumUploadsAge(path, 1, 1);
183-
});
181+
LambdaTestUtils.eventually(5000, 1000,
182+
() -> { assertNumUploadsAge(path, 1, 1); });
184183

185184
// 7. Assert deletion works when age filter matches
186185
describe("Doing aged deletion");
@@ -232,8 +231,8 @@ private void assertNumDeleted(S3AFileSystem fs, Path path, int numDeleted)
232231
* search all parts
233232
* @throws Exception on failure
234233
*/
235-
private void uploadCommandAssertCount(S3AFileSystem fs, String options[], Path path,
236-
int numUploads, int ageSeconds)
234+
private void uploadCommandAssertCount(S3AFileSystem fs, String options[],
235+
Path path, int numUploads, int ageSeconds)
237236
throws Exception {
238237
List<String> allOptions = new ArrayList<>();
239238
List<String> output = new ArrayList<>();

0 commit comments

Comments
 (0)