Przeglądaj źródła

Merge pull request #29845 from vdemeester/fix-the-fix-facepalming-myself

[test-integration] Should check for output, not error in deleteContainer
Tibor Vass 8 lat temu
rodzic
commit
40afb853d7
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      integration-cli/docker_utils_test.go

+ 1 - 1
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
 		}
 	}