From edb8d6fe01b653737d9bf43b934d40d68c1660f1 Mon Sep 17 00:00:00 2001 From: Elizabeth Date: Sat, 7 May 2022 12:40:34 -0400 Subject: [PATCH] correct non-delete --- .../kotlin/org/veupathdb/lib/s3/s34k/minio/BucketContainer.kt | 2 +- test/src/main/kotlin/test/ClientTest.kt | 2 +- test/src/main/resources/log4j2.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/kotlin/org/veupathdb/lib/s3/s34k/minio/BucketContainer.kt b/src/main/kotlin/org/veupathdb/lib/s3/s34k/minio/BucketContainer.kt index f74174f..5f647d2 100644 --- a/src/main/kotlin/org/veupathdb/lib/s3/s34k/minio/BucketContainer.kt +++ b/src/main/kotlin/org/veupathdb/lib/s3/s34k/minio/BucketContainer.kt @@ -54,7 +54,7 @@ internal class BucketContainer( override fun deleteRecursive(name: BucketName, params: RecursiveBucketDeleteParams) { log.debug("Attempting to recursively delete bucket '{}'", name) - RecursiveBucketDeleter(name, client.defaultRegion, params, minio) + RecursiveBucketDeleter(name, client.defaultRegion, params, minio).execute() } override fun exists(name: BucketName, params: BucketExistsParams): Boolean { diff --git a/test/src/main/kotlin/test/ClientTest.kt b/test/src/main/kotlin/test/ClientTest.kt index 5d900d2..cb51b0c 100644 --- a/test/src/main/kotlin/test/ClientTest.kt +++ b/test/src/main/kotlin/test/ClientTest.kt @@ -234,7 +234,7 @@ class ClientTest( val name = BucketName("bucket-name") try { - if(client.buckets[name] != null) + if(client.buckets[name] == null) Log.succeed() else Log.fail("Expected getBucket to return null but it did not.") diff --git a/test/src/main/resources/log4j2.xml b/test/src/main/resources/log4j2.xml index d0bc191..0441ce4 100644 --- a/test/src/main/resources/log4j2.xml +++ b/test/src/main/resources/log4j2.xml @@ -12,7 +12,7 @@ - +