From 95bc6c58b7519e8bd8142134b233809f58036512 Mon Sep 17 00:00:00 2001 From: Guillaume Lours <705411+glours@users.noreply.github.com> Date: Tue, 6 Dec 2022 23:17:14 +0100 Subject: [PATCH] check only running containers in after down tests of profiles e2e tests Signed-off-by: Guillaume Lours <705411+glours@users.noreply.github.com> --- pkg/e2e/profiles_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/e2e/profiles_test.go b/pkg/e2e/profiles_test.go index ea83b525f..e5fc3fdb4 100644 --- a/pkg/e2e/profiles_test.go +++ b/pkg/e2e/profiles_test.go @@ -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()) }) }