From e60a2619527e251a660f04d8c9804298a59bd749 Mon Sep 17 00:00:00 2001 From: Andy Wilkinson Date: Sat, 3 Jun 2017 16:53:28 +0100 Subject: [PATCH] Do not allow failure to remove container to mask earlier failure --- .../boot/launchscript/SysVinitLaunchScriptIT.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/spring-boot-integration-tests/spring-boot-launch-script-tests/src/test/java/org/springframework/boot/launchscript/SysVinitLaunchScriptIT.java b/spring-boot-integration-tests/spring-boot-launch-script-tests/src/test/java/org/springframework/boot/launchscript/SysVinitLaunchScriptIT.java index 4d4156f75c..69789076cf 100644 --- a/spring-boot-integration-tests/spring-boot-launch-script-tests/src/test/java/org/springframework/boot/launchscript/SysVinitLaunchScriptIT.java +++ b/spring-boot-integration-tests/spring-boot-launch-script-tests/src/test/java/org/springframework/boot/launchscript/SysVinitLaunchScriptIT.java @@ -247,7 +247,12 @@ public class SysVinitLaunchScriptIT { return output.toString(); } finally { - docker.removeContainerCmd(container).exec(); + try { + docker.removeContainerCmd(container).exec(); + } + catch (Exception ex) { + // Continue + } } }