From 93243f693c6cb4dd16485a038d01d44f5ade5bdf Mon Sep 17 00:00:00 2001 From: Brian Goff Date: Thu, 18 Feb 2016 11:34:34 -0500 Subject: [PATCH] Fix net=none w/ TestDaemonNoSpaceleftOnDeviceError Broken by bcb9adf49e6726eccc1ee1ed41fbe21789c2367f Signed-off-by: Brian Goff Upstream-commit: 8e0e9e0f24e5802709508b7c7fe61cb5171ec414 Component: engine --- components/engine/integration-cli/docker_cli_daemon_test.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/components/engine/integration-cli/docker_cli_daemon_test.go b/components/engine/integration-cli/docker_cli_daemon_test.go index 2c122f96fe..3ff556e3f1 100644 --- a/components/engine/integration-cli/docker_cli_daemon_test.go +++ b/components/engine/integration-cli/docker_cli_daemon_test.go @@ -1888,7 +1888,7 @@ func (s *DockerDaemonSuite) TestBridgeIPIsExcludedFromAllocatorPool(c *check.C) // Test daemon for no space left on device error func (s *DockerDaemonSuite) TestDaemonNoSpaceleftOnDeviceError(c *check.C) { - testRequires(c, SameHostDaemon, DaemonIsLinux) + testRequires(c, SameHostDaemon, DaemonIsLinux, Network) // create a 2MiB image and mount it as graph root cmd := exec.Command("dd", "of=/tmp/testfs.img", "bs=1M", "seek=2", "count=0") @@ -1912,8 +1912,7 @@ 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(strings.Contains(out, "no space left on device"), check.Equals, true) + c.Assert(out, checker.Contains, "no space left on device") } // Test daemon restart with container links + auto restart