This commit is contained in:
Brendan Burns 2014-06-15 21:57:29 -07:00
parent 2e68d087a9
commit 76148dc85f

View File

@ -696,7 +696,7 @@ func TestMakePortsAndBindings(t *testing.T) {
len(container.Ports) != len(bindings) { len(container.Ports) != len(bindings) {
t.Errorf("Unexpected ports and bindings, %#v %#v %#v", container, exposedPorts, bindings) t.Errorf("Unexpected ports and bindings, %#v %#v %#v", container, exposedPorts, bindings)
} }
for key,value := range bindings { for key, value := range bindings {
switch value[0].HostPort { switch value[0].HostPort {
case "8080": case "8080":
if !reflect.DeepEqual(docker.Port("80/tcp"), key) { if !reflect.DeepEqual(docker.Port("80/tcp"), key) {
@ -714,8 +714,8 @@ func TestMakePortsAndBindings(t *testing.T) {
if !reflect.DeepEqual(docker.Port("445/tcp"), key) { if !reflect.DeepEqual(docker.Port("445/tcp"), key) {
t.Errorf("Unexpected docker port: %#v", key) t.Errorf("Unexpected docker port: %#v", key)
} }
} }
} }
} }