Skip to content

Commit

Permalink
Merge pull request #10049 from glours/fix-flaky-tests
Browse files Browse the repository at this point in the history
check only running containers in after down tests of profiles e2e tests
  • Loading branch information
glours committed Dec 6, 2022
2 parents be30c67 + 95bc6c5 commit c80d52a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/e2e/profiles_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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())
})
}
Expand Down Expand Up @@ -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())
})
}
Expand Down Expand Up @@ -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())
})
}

0 comments on commit c80d52a

Please sign in to comment.