mirror of
https://github.com/docker/compose.git
synced 2025-07-24 06:04:57 +02:00
check only running containers in after down tests of profiles e2e tests
Signed-off-by: Guillaume Lours <705411+glours@users.noreply.github.com>
This commit is contained in:
parent
be30c67633
commit
95bc6c58b7
@ -75,7 +75,7 @@ func TestExplicitProfileUsage(t *testing.T) {
|
|||||||
})
|
})
|
||||||
|
|
||||||
t.Run("check containers after down", func(t *testing.T) {
|
t.Run("check containers after down", func(t *testing.T) {
|
||||||
res := c.RunDockerCmd(t, "ps", "--all")
|
res := c.RunDockerCmd(t, "ps")
|
||||||
assert.Assert(t, !strings.Contains(res.Combined(), projectName), res.Combined())
|
assert.Assert(t, !strings.Contains(res.Combined(), projectName), res.Combined())
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
@ -125,7 +125,7 @@ func TestNoProfileUsage(t *testing.T) {
|
|||||||
})
|
})
|
||||||
|
|
||||||
t.Run("check containers after down", func(t *testing.T) {
|
t.Run("check containers after down", func(t *testing.T) {
|
||||||
res := c.RunDockerCmd(t, "ps", "--all")
|
res := c.RunDockerCmd(t, "ps")
|
||||||
assert.Assert(t, !strings.Contains(res.Combined(), projectName), res.Combined())
|
assert.Assert(t, !strings.Contains(res.Combined(), projectName), res.Combined())
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
@ -181,7 +181,7 @@ func TestActiveProfileViaTargetedService(t *testing.T) {
|
|||||||
})
|
})
|
||||||
|
|
||||||
t.Run("check containers after down", func(t *testing.T) {
|
t.Run("check containers after down", func(t *testing.T) {
|
||||||
res := c.RunDockerCmd(t, "ps", "--all")
|
res := c.RunDockerCmd(t, "ps")
|
||||||
assert.Assert(t, !strings.Contains(res.Combined(), projectName), res.Combined())
|
assert.Assert(t, !strings.Contains(res.Combined(), projectName), res.Combined())
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user