Skip to content

Commit af72d85

Browse files
joviegasJohn Viegas
and
John Viegas
authored
Integration test buckets deletion failed as it had attached access points (#2596)
Co-authored-by: John Viegas <[email protected]>
1 parent 4f87b84 commit af72d85

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

services/s3control/src/it/java/software.amazon.awssdk.services.s3control/S3AccessPointsIntegrationTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,8 @@ public static void setupFixture() {
7676

7777
@AfterClass
7878
public static void tearDown() {
79-
deleteBucketAndAllContents(BUCKET);
8079
s3control.deleteAccessPoint(b -> b.accountId(accountId).name(AP_NAME));
80+
deleteBucketAndAllContents(BUCKET);
8181
}
8282

8383
@Test

services/s3control/src/it/java/software.amazon.awssdk.services.s3control/S3AsyncAccessPointsIntegrationTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@ public static void setupFixture() {
6565

6666
@AfterClass
6767
public static void tearDown() {
68-
deleteBucketAndAllContents(BUCKET);
6968
s3control.deleteAccessPoint(b -> b.accountId(accountId).name(AP_NAME)).join();
69+
deleteBucketAndAllContents(BUCKET);
7070
}
7171

7272
@Test

0 commit comments

Comments
 (0)