Skip to content

Commit

Permalink
Add fixes for integration-cli tests w/ --net none
Browse files Browse the repository at this point in the history
Adds network to integration tests that were failing without network.

Fixes moby#10964
Fixes moby#10968

Signed-off-by: Jake Champlin <[email protected]>
  • Loading branch information
grubernaut committed Mar 26, 2015
1 parent f84086b commit c2fe262
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions integration-cli/docker_cli_events_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")

Expand Down
1 change: 1 addition & 0 deletions integration-cli/docker_cli_run_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"))
Expand Down
1 change: 1 addition & 0 deletions integration-cli/docker_cli_search_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit c2fe262

Please sign in to comment.