Adds network to integration tests that were failing without network.
Fixes #10964
Fixes #10968
Signed-off-by: Jake Champlin <jake.champlin.27@gmail.com>
| ... | ... |
@@ -147,6 +147,7 @@ func TestRunLeakyFileDescriptors(t *testing.T) {
|
| 147 | 147 |
// it should be possible to lookup Google DNS |
| 148 | 148 |
// this will fail when Internet access is unavailable |
| 149 | 149 |
func TestRunLookupGoogleDns(t *testing.T) {
|
| 150 |
+ testRequires(t, Network) |
|
| 150 | 151 |
defer deleteAllContainers() |
| 151 | 152 |
|
| 152 | 153 |
out, _, _, err := runCommandWithStdoutStderr(exec.Command(dockerBinary, "run", "busybox", "nslookup", "google.com")) |
| ... | ... |
@@ -8,6 +8,7 @@ import ( |
| 8 | 8 |
|
| 9 | 9 |
// search for repos named "registry" on the central registry |
| 10 | 10 |
func TestSearchOnCentralRegistry(t *testing.T) {
|
| 11 |
+ testRequires(t, Network) |
|
| 11 | 12 |
searchCmd := exec.Command(dockerBinary, "search", "busybox") |
| 12 | 13 |
out, exitCode, err := runCommandWithOutput(searchCmd) |
| 13 | 14 |
if err != nil || exitCode != 0 {
|