- errcode of 1 can be returned for cases other than the 'no space left' case
Signed-off-by: Morgan Bauer <mbauer@us.ibm.com>
| ... | ... |
@@ -1890,7 +1890,8 @@ func (s *DockerDaemonSuite) TestDaemonNoSpaceleftOnDeviceError(c *check.C) {
|
| 1890 | 1890 |
|
| 1891 | 1891 |
// pull a repository large enough to fill the mount point |
| 1892 | 1892 |
out, err := s.d.Cmd("pull", "registry:2")
|
| 1893 |
- c.Assert(out, check.Not(check.Equals), 1, check.Commentf("no space left on device"))
|
|
| 1893 |
+ |
|
| 1894 |
+ c.Assert(strings.Contains(out, "no space left on device"), check.Equals, true) |
|
| 1894 | 1895 |
} |
| 1895 | 1896 |
|
| 1896 | 1897 |
// Test daemon restart with container links + auto restart |