mirror of
https://github.com/docker/compose.git
synced 2025-07-26 15:14:04 +02:00
Fir port display assertion, Docker engine returns 2 entries in container inspect
Signed-off-by: Guillaume Tardif <guillaume.tardif@gmail.com>
This commit is contained in:
parent
da6cb7c8b0
commit
ec693fc5f8
@ -103,7 +103,7 @@ func TestLocalBackendRun(t *testing.T) {
|
|||||||
nginxFound = true
|
nginxFound = true
|
||||||
assert.Equal(t, fields[1], "nginx:alpine", res.Combined())
|
assert.Equal(t, fields[1], "nginx:alpine", res.Combined())
|
||||||
assert.Equal(t, fields[2], "/docker-entrypoint.sh", 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())
|
assert.Assert(t, nginxFound, res.Stdout())
|
||||||
|
Loading…
x
Reference in New Issue
Block a user