discard stdout for laaarge log test

Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
This commit is contained in:
Nicolas De Loof 2024-02-15 11:23:20 +01:00 committed by Nicolas De loof
parent eb5f7d76fe
commit c79aabde32
1 changed files with 3 additions and 1 deletions

View File

@ -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"})
}