浏览代码

Fix E2E test to have index in the correct position

Signed-off-by: Amit Saha <[email protected]>
Amit Saha 2 年之前
父节点
当前提交
90ca13b747
共有 2 个文件被更改,包括 1 次插入4 次删除
  1. 0 3
      pkg/e2e/fixtures/logs-test/compose.yaml
  2. 1 1
      pkg/e2e/logs_test.go

+ 0 - 3
pkg/e2e/fixtures/logs-test/compose.yaml

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

+ 1 - 1
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`})