Make port deterministic

This commit is contained in:
tanyadegurechaff 2017-04-28 17:05:54 +09:00 committed by Fernandez Ludovic
parent f621d7a2c4
commit 79cbe56a41
2 changed files with 23 additions and 10 deletions

View file

@ -227,14 +227,13 @@ func TestDockerGetPort(t *testing.T) {
})),
expected: "80",
},
// FIXME handle this better..
//{
// container: containerJSON(ports(nat.PortMap{
// "80/tcp": {},
// "443/tcp": {},
// })),
// expected: "80",
//},
{
container: containerJSON(ports(nat.PortMap{
"80/tcp": {},
"443/tcp": {},
})),
expected: "80",
},
{
container: containerJSON(labels(map[string]string{
"traefik.port": "8080",