mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Fix net=none w/ TestDaemonNoSpaceleftOnDeviceError
Broken by bcb9adf49e
Signed-off-by: Brian Goff <cpuguy83@gmail.com>
This commit is contained in:
parent
eae59c4226
commit
8e0e9e0f24
1 changed files with 2 additions and 3 deletions
|
@ -1888,7 +1888,7 @@ func (s *DockerDaemonSuite) TestBridgeIPIsExcludedFromAllocatorPool(c *check.C)
|
||||||
|
|
||||||
// Test daemon for no space left on device error
|
// Test daemon for no space left on device error
|
||||||
func (s *DockerDaemonSuite) TestDaemonNoSpaceleftOnDeviceError(c *check.C) {
|
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
|
// create a 2MiB image and mount it as graph root
|
||||||
cmd := exec.Command("dd", "of=/tmp/testfs.img", "bs=1M", "seek=2", "count=0")
|
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
|
// pull a repository large enough to fill the mount point
|
||||||
out, err := s.d.Cmd("pull", "registry:2")
|
out, err := s.d.Cmd("pull", "registry:2")
|
||||||
|
c.Assert(out, checker.Contains, "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
|
// Test daemon restart with container links + auto restart
|
||||||
|
|
Loading…
Add table
Reference in a new issue