mirror of
https://github.com/docker/compose.git
synced 2025-07-28 16:14:06 +02:00
Fix E2E test to have index in the correct position
Signed-off-by: Amit Saha <asaha@atlassian.com>
This commit is contained in:
parent
f9946127ce
commit
90ca13b747
@ -6,6 +6,3 @@ services:
|
|||||||
hello:
|
hello:
|
||||||
image: alpine
|
image: alpine
|
||||||
command: echo hello
|
command: echo hello
|
||||||
deploy:
|
|
||||||
mode: replicated
|
|
||||||
replicas: 2
|
|
||||||
|
@ -55,7 +55,7 @@ func TestLocalComposeLogs(t *testing.T) {
|
|||||||
})
|
})
|
||||||
|
|
||||||
t.Run("logs hello index", func(t *testing.T) {
|
t.Run("logs hello index", func(t *testing.T) {
|
||||||
res := c.RunDockerComposeCmd(t, "--project-name", projectName, "--index", "2", "logs", "hello")
|
res := c.RunDockerComposeCmd(t, "--project-name", projectName, "logs", "--index", "2", "hello")
|
||||||
// TODO: see if there is a way we can verify that the logs is from the second replica
|
// TODO: see if there is a way we can verify that the logs is from the second replica
|
||||||
// or if we need to..
|
// or if we need to..
|
||||||
res.Assert(t, icmd.Expected{Out: `hello`})
|
res.Assert(t, icmd.Expected{Out: `hello`})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user