From 2fbef9475804acc27519d51313b540f17954e13e Mon Sep 17 00:00:00 2001 From: Jakob Vogel Date: Tue, 19 Sep 2023 17:20:45 +0200 Subject: [PATCH] =?UTF-8?q?Removes=20overly=20ambitious=20cleanup=20?= =?UTF-8?q?=E2=9B=91=EF=B8=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit #233 --- src/test/java/BaseAWSSpec.groovy | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/src/test/java/BaseAWSSpec.groovy b/src/test/java/BaseAWSSpec.groovy index cd514ae..44d4387 100644 --- a/src/test/java/BaseAWSSpec.groovy +++ b/src/test/java/BaseAWSSpec.groovy @@ -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"