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 коммит произвёл Nicolas De loof
Родитель eb5f7d76fe
Коммит c79aabde32
1 изменённых файлов: 3 добавлений и 1 удалений

Просмотреть файл

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