From ad3e71d5c7e01dca229d4077cf8b019d8085c33a Mon Sep 17 00:00:00 2001 From: Tianon Gravi Date: Thu, 27 Mar 2014 11:06:32 -0600 Subject: [PATCH] Adjust TestOnlyLoopbackExistsWhenUsingDisableNetworkOption to ignore "DOWN" interfaces This fixes the following, which I've been seeing on all my machines for as long as I can remember: --- FAIL: TestOnlyLoopbackExistsWhenUsingDisableNetworkOption (0.36 seconds) container_test.go:1597: Wrong interface count in test container: expected [*: lo], got [1: lo 2: sit0] Docker-DCO-1.1-Signed-off-by: Andrew Page (github: tianon) --- integration/container_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/integration/container_test.go b/integration/container_test.go index 663b350638..8ed5525c72 100644 --- a/integration/container_test.go +++ b/integration/container_test.go @@ -1553,7 +1553,7 @@ func TestOnlyLoopbackExistsWhenUsingDisableNetworkOption(t *testing.T) { runtime := mkRuntimeFromEngine(eng, t) defer nuke(runtime) - config, hc, _, err := runconfig.Parse([]string{"-n=false", GetTestImage(runtime).ID, "ip", "addr", "show"}, nil) + config, hc, _, err := runconfig.Parse([]string{"-n=false", GetTestImage(runtime).ID, "ip", "addr", "show", "up"}, nil) if err != nil { t.Fatal(err) }