From 58e011595e4c518a38ec27716585177faa969f72 Mon Sep 17 00:00:00 2001 From: Michael Crosby Date: Fri, 18 Apr 2014 03:22:53 +0000 Subject: [PATCH] Remove worthless iptables test Docker-DCO-1.1-Signed-off-by: Michael Crosby (github: crosbymichael) --- integration/iptables_test.go | 22 ---------------------- 1 file changed, 22 deletions(-) delete mode 100644 integration/iptables_test.go diff --git a/integration/iptables_test.go b/integration/iptables_test.go deleted file mode 100644 index 1dd419435..000000000 --- a/integration/iptables_test.go +++ /dev/null @@ -1,22 +0,0 @@ -package docker - -import ( - "github.com/dotcloud/docker/pkg/iptables" - "os" - "testing" -) - -// FIXME: this test should be a unit test. -// For example by mocking os/exec to make sure iptables is not actually called. - -func TestIptables(t *testing.T) { - if _, err := iptables.Raw("-L"); err != nil { - t.Fatal(err) - } - path := os.Getenv("PATH") - os.Setenv("PATH", "") - defer os.Setenv("PATH", path) - if _, err := iptables.Raw("-L"); err == nil { - t.Fatal("Not finding iptables in the PATH should cause an error") - } -}