Skip to content

Commit

Permalink
tearDown overload inherits AfterEach (#12163)
Browse files Browse the repository at this point in the history
  • Loading branch information
Croway authored Nov 23, 2023
1 parent f1f00db commit d4fee8a
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ void testGetChangeFeed() throws IOException, InterruptedException {
}

@AfterAll
public void tearDown() {
public void deleteClient() {
containerClient.delete();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -218,11 +218,11 @@ private String generateRandomBlobName(String prefix, String extension) {
}

@AfterAll
public void tearDown() {
public void deleteContainers() {
// delete container
containerClient.delete();
batchContainerClient.delete();
prefixContainerClient.delete();
containerClient.deleteIfExists();
batchContainerClient.deleteIfExists();
prefixContainerClient.deleteIfExists();
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ public void setup() throws Exception {
}

@AfterAll
public void tearDown() {
public void deleteClient() {
blobContainerClientWrapper.deleteContainer(null, null);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ void testHeaderPreservation() throws InterruptedException {
}

@AfterAll
public void tearDown() {
public void deleteClient() {
containerClient.delete();
}

Expand Down

0 comments on commit d4fee8a

Please sign in to comment.