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:
Guillaume Lours 2022-12-06 23:17:14 +01:00
parent be30c67633
commit 95bc6c58b7
No known key found for this signature in database
1 changed files with 3 additions and 3 deletions

View File

@ -75,7 +75,7 @@ func TestExplicitProfileUsage(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())
})
}
@ -125,7 +125,7 @@ func TestNoProfileUsage(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())
})
}
@ -181,7 +181,7 @@ func TestActiveProfileViaTargetedService(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())
})
}