From bcb9adf49e6726eccc1ee1ed41fbe21789c2367f Mon Sep 17 00:00:00 2001 From: Morgan Bauer Date: Thu, 21 Jan 2016 13:31:10 -0800 Subject: [PATCH] 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 --- integration-cli/docker_cli_daemon_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/integration-cli/docker_cli_daemon_test.go b/integration-cli/docker_cli_daemon_test.go index 2fa39dae46..04e20b49bc 100644 --- a/integration-cli/docker_cli_daemon_test.go +++ b/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