Browse Source

Merge pull request #19562 from MHBauer/nospace-checktheoutput

check the output, not the errcode
Doug Davis 9 years ago
parent
commit
6f22d9ec4e
1 changed files with 2 additions and 1 deletions
  1. 2 1
      integration-cli/docker_cli_daemon_test.go

+ 2 - 1
integration-cli/docker_cli_daemon_test.go

@@ -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