From 90ca13b7475989c41665cf7571706d98ea9c2c34 Mon Sep 17 00:00:00 2001 From: Amit Saha Date: Wed, 25 Jan 2023 12:35:23 +1100 Subject: [PATCH] Fix E2E test to have index in the correct position Signed-off-by: Amit Saha --- pkg/e2e/fixtures/logs-test/compose.yaml | 3 --- pkg/e2e/logs_test.go | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/pkg/e2e/fixtures/logs-test/compose.yaml b/pkg/e2e/fixtures/logs-test/compose.yaml index e07680e6e..cc919b718 100644 --- a/pkg/e2e/fixtures/logs-test/compose.yaml +++ b/pkg/e2e/fixtures/logs-test/compose.yaml @@ -6,6 +6,3 @@ services: hello: image: alpine command: echo hello - deploy: - mode: replicated - replicas: 2 diff --git a/pkg/e2e/logs_test.go b/pkg/e2e/logs_test.go index 1c7cfe163..cec80a624 100644 --- a/pkg/e2e/logs_test.go +++ b/pkg/e2e/logs_test.go @@ -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`})