mirror of
https://github.com/moby/moby.git
synced 2025-07-30 18:23:29 +03:00
Correct the message of ErrorCodeNoSuchContainer to "No such container"
Fixes issue #18424 Signed-off-by: Wen Cheng Ma <wenchma@cn.ibm.com>
This commit is contained in:
@ -1051,7 +1051,7 @@ func (s *DockerSuite) TestContainerApiDeleteNotExist(c *check.C) {
|
||||
status, body, err := sockRequest("DELETE", "/containers/doesnotexist", nil)
|
||||
c.Assert(err, checker.IsNil)
|
||||
c.Assert(status, checker.Equals, http.StatusNotFound)
|
||||
c.Assert(string(body), checker.Matches, "no such id: doesnotexist\n")
|
||||
c.Assert(string(body), checker.Matches, "No such container: doesnotexist\n")
|
||||
}
|
||||
|
||||
func (s *DockerSuite) TestContainerApiDeleteForce(c *check.C) {
|
||||
|
Reference in New Issue
Block a user