Remove redundant error messages
For operations on multi containers, we printed error for each failed container, then printed an extra message for container names, it seems redundant. Addresses comments: https://github.com/docker/docker/pull/15078#discussion_r47988449 Signed-off-by: Qiang Huang <h.huangqiang@huawei.com> Upstream-commit: e0dc4f27f66d4311238adf4d7027bb3c6b58ad26 Component: engine
This commit is contained in:
@ -73,8 +73,8 @@ func (s *DockerSuite) TestRmContainerOrphaning(c *check.C) {
|
||||
func (s *DockerSuite) TestRmInvalidContainer(c *check.C) {
|
||||
if out, _, err := dockerCmdWithError("rm", "unknown"); err == nil {
|
||||
c.Fatal("Expected error on rm unknown container, got none")
|
||||
} else if !strings.Contains(out, "failed to remove containers") {
|
||||
c.Fatalf("Expected output to contain 'failed to remove containers', got %q", out)
|
||||
} else if !strings.Contains(out, "Failed to remove container") {
|
||||
c.Fatalf("Expected output to contain 'Failed to remove container', got %q", out)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user