Merge pull request #11795 from grubernaut/net_none_test_fixes

Add fixes for integration-cli tests w/ --net none
This commit is contained in:
Arnaud Porterie 2015-03-25 21:22:28 -07:00
commit 191f88dd2c
3 changed files with 3 additions and 0 deletions

View file

@ -149,6 +149,7 @@ func TestEventsImageUntagDelete(t *testing.T) {
func TestEventsImagePull(t *testing.T) {
since := daemonTime(t).Unix()
testRequires(t, Network)
defer deleteImages("hello-world")

View file

@ -147,6 +147,7 @@ func TestRunLeakyFileDescriptors(t *testing.T) {
// it should be possible to lookup Google DNS
// this will fail when Internet access is unavailable
func TestRunLookupGoogleDns(t *testing.T) {
testRequires(t, Network)
defer deleteAllContainers()
out, _, _, err := runCommandWithStdoutStderr(exec.Command(dockerBinary, "run", "busybox", "nslookup", "google.com"))

View file

@ -8,6 +8,7 @@ import (
// search for repos named "registry" on the central registry
func TestSearchOnCentralRegistry(t *testing.T) {
testRequires(t, Network)
searchCmd := exec.Command(dockerBinary, "search", "busybox")
out, exitCode, err := runCommandWithOutput(searchCmd)
if err != nil || exitCode != 0 {