Skip to content

Commit

Permalink
Removes overly ambitious cleanup ⛑️
Browse files Browse the repository at this point in the history
  • Loading branch information
jakobvogel committed Sep 19, 2023
1 parent b9a1792 commit 2fbef94
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions src/test/java/BaseAWSSpec.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -59,17 +59,6 @@ abstract class BaseAWSSpec extends BaseSpecification {
}
}

/**
* After each test, make sure that the test leaves the state clean. This makes sure that no unintended side effects
* have been missed.
*/
def cleanup() {
def client = getClient()
if (!client.listBuckets().isEmpty()) {
throw new IllegalStateException("Test left state polluted. Ensure that the test includes a proper cleanup section.")
}
}

def "HEAD of non-existing bucket as expected"() {
given:
def bucketName = "does-not-exist"
Expand Down

0 comments on commit 2fbef94

Please sign in to comment.