1
0
mirror of https://github.com/moby/moby.git synced 2025-08-01 05:47:11 +03:00

check the output, not the errcode

- errcode of 1 can be returned for cases other than the 'no space left' case

Signed-off-by: Morgan Bauer <mbauer@us.ibm.com>
This commit is contained in:
Morgan Bauer
2016-01-21 13:31:10 -08:00
parent 0b7e9ef910
commit bcb9adf49e

View File

@ -1890,7 +1890,8 @@ func (s *DockerDaemonSuite) TestDaemonNoSpaceleftOnDeviceError(c *check.C) {
// pull a repository large enough to fill the mount point
out, err := s.d.Cmd("pull", "registry:2")
c.Assert(out, check.Not(check.Equals), 1, check.Commentf("no space left on device"))
c.Assert(strings.Contains(out, "no space left on device"), check.Equals, true)
}
// Test daemon restart with container links + auto restart