Most common scenario is to use `compose ls` without name option, and list all stacks

Signed-off-by: Guillaume Tardif <guillaume.tardif@docker.com>
This commit is contained in:
Guillaume Tardif 2020-09-08 09:10:16 +02:00
parent a2e0f16f07
commit 171ab1bd0c
2 changed files with 2 additions and 2 deletions

View File

@ -467,7 +467,7 @@ func TestComposeUpUpdate(t *testing.T) {
})
t.Run("compose ls", func(t *testing.T) {
res := c.RunDockerCmd("compose", "ls", "--project-name", composeProjectName)
res := c.RunDockerCmd("compose", "ls")
lines := strings.Split(strings.TrimSpace(res.Stdout()), "\n")
assert.Equal(t, 2, len(lines))

View File

@ -99,7 +99,7 @@ func TestCompose(t *testing.T) {
})
t.Run("compose ls", func(t *testing.T) {
res := c.RunDockerCmd("compose", "ls", "--project-name", stack)
res := c.RunDockerCmd("compose", "ls")
lines := strings.Split(strings.TrimSpace(res.Stdout()), "\n")
assert.Equal(t, 2, len(lines))