From 50fea8978257141bf85669b9d757bf184f886a1b Mon Sep 17 00:00:00 2001 From: Michael Crosby Date: Fri, 31 Jan 2014 12:07:51 -0800 Subject: [PATCH] Fix links test to not accept bridge Docker-DCO-1.1-Signed-off-by: Michael Crosby (github: crosbymichael) --- links_test.go | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/links_test.go b/links_test.go index be8d48e45c..8a266a9a3d 100644 --- a/links_test.go +++ b/links_test.go @@ -30,7 +30,7 @@ func TestLinkNew(t *testing.T) { to := newMockLinkContainer(toID, "172.0.17.3") - link, err := NewLink(to, from, "/db/docker", "172.0.17.1") + link, err := NewLink(to, from, "/db/docker", nil) if err != nil { t.Fatal(err) } @@ -50,9 +50,6 @@ func TestLinkNew(t *testing.T) { if link.ChildIP != "172.0.17.2" { t.Fail() } - if link.BridgeInterface != "172.0.17.1" { - t.Fail() - } for _, p := range link.Ports { if p != Port("6379/tcp") { t.Fail() @@ -75,7 +72,7 @@ func TestLinkEnv(t *testing.T) { to := newMockLinkContainer(toID, "172.0.17.3") - link, err := NewLink(to, from, "/db/docker", "172.0.17.1") + link, err := NewLink(to, from, "/db/docker", nil) if err != nil { t.Fatal(err) }