Make port deterministic
This commit is contained in:
parent
f621d7a2c4
commit
79cbe56a41
2 changed files with 23 additions and 10 deletions
|
@ -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",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue