mirror of
https://github.com/docker/compose.git
synced 2025-07-29 08:34:15 +02:00
Merge pull request #10049 from glours/fix-flaky-tests
check only running containers in after down tests of profiles e2e tests
This commit is contained in:
commit
c80d52aded
@ -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())
|
||||
})
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user