1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Merge pull request #19562 from MHBauer/nospace-checktheoutput

check the output, not the errcode
This commit is contained in:
Doug Davis 2016-01-21 22:09:41 -05:00
commit 6f22d9ec4e

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