mirror of
https://github.com/docker/compose.git
synced 2025-07-06 13:24:25 +02:00
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) {
|
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")
|
lines := strings.Split(strings.TrimSpace(res.Stdout()), "\n")
|
||||||
|
|
||||||
assert.Equal(t, 2, len(lines))
|
assert.Equal(t, 2, len(lines))
|
||||||
|
@ -99,7 +99,7 @@ func TestCompose(t *testing.T) {
|
|||||||
})
|
})
|
||||||
|
|
||||||
t.Run("compose ls", func(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")
|
lines := strings.Split(strings.TrimSpace(res.Stdout()), "\n")
|
||||||
|
|
||||||
assert.Equal(t, 2, len(lines))
|
assert.Equal(t, 2, len(lines))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user