no need toclose testcontainers dockerclient (it is a singleton)
diff --git a/integration-test/src/test/java/org/apache/geronimo/arthur/integrationtests/container/MavenContainer.java b/integration-test/src/test/java/org/apache/geronimo/arthur/integrationtests/container/MavenContainer.java
index 04d54bb..0153205 100644
--- a/integration-test/src/test/java/org/apache/geronimo/arthur/integrationtests/container/MavenContainer.java
+++ b/integration-test/src/test/java/org/apache/geronimo/arthur/integrationtests/container/MavenContainer.java
@@ -16,7 +16,6 @@
*/
package org.apache.geronimo.arthur.integrationtests.container;
-import java.io.IOException;
import java.util.Optional;
import java.util.concurrent.ExecutionException;
@@ -52,7 +51,8 @@
final String tag = fromImage.split(":")[1];
final String targetImage = "apache/geronimo/arthur/maven-test-base:" + tag;
- try (final DockerClient client = DockerClientFactory.instance().client()) {
+ final DockerClient client = DockerClientFactory.instance().client();
+ try {
if (!client.listImagesCmd().withImageNameFilter(targetImage).exec().isEmpty()) {
log.info("Found '{}' image, reusing it", targetImage);
return targetImage;
@@ -70,7 +70,7 @@
} catch (final InterruptedException ie) {
Thread.currentThread().interrupt();
throw new IllegalStateException(ie);
- } catch (final IOException | ExecutionException e) {
+ } catch (final ExecutionException e) {
throw new IllegalStateException(e);
}
}