1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Merge pull request #14979 from runcom/fix-flacky-TestRunNonRootUserResolvName

Fix TestRunNonRootUserResolvName flackiness
This commit is contained in:
Tibor Vass 2015-07-24 21:50:44 -04:00
commit afb831d35e

View file

@ -1034,10 +1034,9 @@ func (s *DockerSuite) TestRunDnsOptionsBasedOnHostResolvConf(c *check.C) {
// Test to see if a non-root user can resolve a DNS name and reach out to it. Also
// check if the container resolv.conf file has atleast 0644 perm.
func (s *DockerSuite) TestRunNonRootUserResolvName(c *check.C) {
testRequires(c, SameHostDaemon, NativeExecDriver)
testRequires(c, Network)
testRequires(c, SameHostDaemon, Network)
dockerCmd(c, "run", "--name=testperm", "--user=default", "busybox", "ping", "-c", "1", "www.docker.io")
dockerCmd(c, "run", "--name=testperm", "--user=default", "busybox", "ping", "-c", "1", "apt.dockerproject.org")
cID, err := getIDByName("testperm")
if err != nil {