mirror of https://github.com/docker/compose.git
Merge pull request #1583 from gtardif/fix_port_display
Fir port display assertion, Docker engine returns 2 entries in container inspect
This commit is contained in:
commit
f41efa3484
|
@ -103,7 +103,7 @@ func TestLocalBackendRun(t *testing.T) {
|
|||
nginxFound = true
|
||||
assert.Equal(t, fields[1], "nginx:alpine", res.Combined())
|
||||
assert.Equal(t, fields[2], "/docker-entrypoint.sh", res.Combined())
|
||||
assert.Equal(t, fields[len(fields)-1], "0.0.0.0:85->80/tcp", res.Combined())
|
||||
assert.Assert(t, strings.Contains(fields[len(fields)-1], ":85->80/tcp"), res.Combined())
|
||||
}
|
||||
}
|
||||
assert.Assert(t, nginxFound, res.Stdout())
|
||||
|
|
Loading…
Reference in New Issue