Skip to content

Commit e60a261

Browse files
committed
Do not allow failure to remove container to mask earlier failure
1 parent 31ff7f1 commit e60a261

File tree

1 file changed

+6
-1
lines changed
  • spring-boot-integration-tests/spring-boot-launch-script-tests/src/test/java/org/springframework/boot/launchscript

1 file changed

+6
-1
lines changed

spring-boot-integration-tests/spring-boot-launch-script-tests/src/test/java/org/springframework/boot/launchscript/SysVinitLaunchScriptIT.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,12 @@ public void onNext(Frame item) {
247247
return output.toString();
248248
}
249249
finally {
250-
docker.removeContainerCmd(container).exec();
250+
try {
251+
docker.removeContainerCmd(container).exec();
252+
}
253+
catch (Exception ex) {
254+
// Continue
255+
}
251256
}
252257
}
253258

0 commit comments

Comments
 (0)