From b029d3dee36d2d3c51b66557b4f03e493fe45fee Mon Sep 17 00:00:00 2001 From: Vincent Demeester Date: Tue, 3 Jan 2017 14:45:39 +0100 Subject: [PATCH] Should check for output, not error in deleteContainer Signed-off-by: Vincent Demeester --- integration-cli/docker_utils_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/integration-cli/docker_utils_test.go b/integration-cli/docker_utils_test.go index f4d08931cc..6c74ea0236 100644 --- a/integration-cli/docker_utils_test.go +++ b/integration-cli/docker_utils_test.go @@ -124,7 +124,7 @@ func deleteContainer(ignoreNoSuchContainer bool, container ...string) error { if ignoreNoSuchContainer && result.Error != nil { // If the error is "No such container: ..." this means the container doesn't exists anymore, // we can safely ignore that one. - if strings.Contains(result.Error.Error(), "No such container") { + if strings.Contains(result.Stderr(), "No such container") { return nil } }