1
0
mirror of https://github.com/moby/moby.git synced 2025-08-01 05:47:11 +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:
Wen Cheng Ma
2015-12-04 15:00:08 +08:00
parent 7c1c96551d
commit c424c8c32c
7 changed files with 9 additions and 9 deletions

View File

@ -70,7 +70,7 @@ func (s *DockerSuite) TestPostContainersAttachContainerNotFound(c *check.C) {
status, body, err := sockRequest("POST", "/containers/doesnotexist/attach", nil)
c.Assert(status, checker.Equals, http.StatusNotFound)
c.Assert(err, checker.IsNil)
expected := "no such id: doesnotexist\n"
expected := "No such container: doesnotexist\n"
c.Assert(string(body), checker.Contains, expected)
}
@ -78,7 +78,7 @@ func (s *DockerSuite) TestGetContainersWsAttachContainerNotFound(c *check.C) {
status, body, err := sockRequest("GET", "/containers/doesnotexist/attach/ws", nil)
c.Assert(status, checker.Equals, http.StatusNotFound)
c.Assert(err, checker.IsNil)
expected := "no such id: doesnotexist\n"
expected := "No such container: doesnotexist\n"
c.Assert(string(body), checker.Contains, expected)
}