This is an automated email from the ASF dual-hosted git repository.
jamesnetherton pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-quarkus.git
The following commit(s) were added to refs/heads/main by this push:
new 4ca94cf Avoid leaking localstack containers when ryuk is disabled
4ca94cf is described below
commit 4ca94cfe466a6346d9f31a6dc66c07d072a65f87
Author: James Netherton <[email protected]>
AuthorDate: Wed Jun 16 08:19:33 2021 +0100
Avoid leaking localstack containers when ryuk is disabled
---
.../apache/camel/quarkus/test/support/aws2/Aws2TestEnvContext.java | 4 ++++
1 file changed, 4 insertions(+)
diff --git
a/integration-tests-support/aws2/src/main/java/org/apache/camel/quarkus/test/support/aws2/Aws2TestEnvContext.java
b/integration-tests-support/aws2/src/main/java/org/apache/camel/quarkus/test/support/aws2/Aws2TestEnvContext.java
index 5e25e3c..883a2a0 100644
---
a/integration-tests-support/aws2/src/main/java/org/apache/camel/quarkus/test/support/aws2/Aws2TestEnvContext.java
+++
b/integration-tests-support/aws2/src/main/java/org/apache/camel/quarkus/test/support/aws2/Aws2TestEnvContext.java
@@ -121,6 +121,10 @@ public class Aws2TestEnvContext {
LOG.warnf(e, "Could not close %s", c);
}
}
+
+ if (localstack.isPresent()) {
+ localstack.get().stop();
+ }
}
/**