Merge pull request #594 from docker/minor_test_change

Most common scenario is to use `compose ls` without name option, and list all stacks
This commit is contained in:
Anca Iordache 2020-09-08 10:50:09 +02:00 committed by GitHub
commit 12a15a9a4c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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))