Fix E2E test to have index in the correct position

Signed-off-by: Amit Saha <asaha@atlassian.com>
This commit is contained in:
Amit Saha 2023-01-25 12:35:23 +11:00 committed by Nicolas De loof
parent f9946127ce
commit 90ca13b747
2 changed files with 1 additions and 4 deletions

View File

@ -6,6 +6,3 @@ services:
hello:
image: alpine
command: echo hello
deploy:
mode: replicated
replicas: 2

View File

@ -55,7 +55,7 @@ func TestLocalComposeLogs(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
// or if we need to..
res.Assert(t, icmd.Expected{Out: `hello`})