Browse code

Fix test failure when --net none build

Closes: #13369

Signed-off-by: Qiang Huang <h.huangqiang@huawei.com>

Qiang Huang authored on 2015/05/22 09:21:09
Showing 1 changed files
... ...
@@ -1459,6 +1459,7 @@ func (s *DockerSuite) TestRunDnsOptionsBasedOnHostResolvConf(c *check.C) {
1459 1459
 // check if the container resolv.conf file has atleast 0644 perm.
1460 1460
 func (s *DockerSuite) TestRunNonRootUserResolvName(c *check.C) {
1461 1461
 	testRequires(c, SameHostDaemon)
1462
+	testRequires(c, Network)
1462 1463
 
1463 1464
 	cmd := exec.Command(dockerBinary, "run", "--name=testperm", "--user=default", "busybox", "ping", "-c", "1", "www.docker.io")
1464 1465
 	if out, err := runCommand(cmd); err != nil {