mirror of https://github.com/docker/compose.git
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:
commit
12a15a9a4c
|
@ -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))
|
||||
|
|
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue