瀏覽代碼

discard stdout for laaarge log test

Signed-off-by: Nicolas De Loof <[email protected]>
Nicolas De Loof 1 年之前
父節點
當前提交
c79aabde32
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      pkg/e2e/logs_test.go

+ 3 - 1
pkg/e2e/logs_test.go

@@ -116,7 +116,9 @@ func TestLocalComposeLargeLogs(t *testing.T) {
 	}
 	assert.NilError(t, f.Close())
 
-	res := c.RunDockerComposeCmd(t, "-f", "./fixtures/logs-test/cat.yaml", "--project-name", projectName, "up", "--abort-on-container-exit")
+	cmd := c.NewDockerComposeCmd(t, "-f", "./fixtures/logs-test/cat.yaml", "--project-name", projectName, "up", "--abort-on-container-exit")
+	cmd.Stdout = io.Discard
+	res := icmd.RunCmd(cmd)
 	res.Assert(t, icmd.Expected{Out: "test-1 exited with code 0"})
 }