mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Fix links test to not accept bridge
Docker-DCO-1.1-Signed-off-by: Michael Crosby <michael@crosbymichael.com> (github: crosbymichael)
This commit is contained in:
parent
a11bee44d7
commit
50fea89782
1 changed files with 2 additions and 5 deletions
|
@ -30,7 +30,7 @@ func TestLinkNew(t *testing.T) {
|
||||||
|
|
||||||
to := newMockLinkContainer(toID, "172.0.17.3")
|
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 {
|
if err != nil {
|
||||||
t.Fatal(err)
|
t.Fatal(err)
|
||||||
}
|
}
|
||||||
|
@ -50,9 +50,6 @@ func TestLinkNew(t *testing.T) {
|
||||||
if link.ChildIP != "172.0.17.2" {
|
if link.ChildIP != "172.0.17.2" {
|
||||||
t.Fail()
|
t.Fail()
|
||||||
}
|
}
|
||||||
if link.BridgeInterface != "172.0.17.1" {
|
|
||||||
t.Fail()
|
|
||||||
}
|
|
||||||
for _, p := range link.Ports {
|
for _, p := range link.Ports {
|
||||||
if p != Port("6379/tcp") {
|
if p != Port("6379/tcp") {
|
||||||
t.Fail()
|
t.Fail()
|
||||||
|
@ -75,7 +72,7 @@ func TestLinkEnv(t *testing.T) {
|
||||||
|
|
||||||
to := newMockLinkContainer(toID, "172.0.17.3")
|
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 {
|
if err != nil {
|
||||||
t.Fatal(err)
|
t.Fatal(err)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue