From aacd881358265c53f8af3c2c91a24061e5c296d3 Mon Sep 17 00:00:00 2001 From: Guillaume Tardif Date: Fri, 4 Dec 2020 15:19:12 +0100 Subject: [PATCH] Add -d flag in e2e tests now that `docker compose up` attaches to logs by default Signed-off-by: Guillaume Tardif --- local/e2e/compose_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/local/e2e/compose_test.go b/local/e2e/compose_test.go index a9042f35..9a2211ec 100644 --- a/local/e2e/compose_test.go +++ b/local/e2e/compose_test.go @@ -45,7 +45,7 @@ func TestLocalComposeUp(t *testing.T) { }) t.Run("up", func(t *testing.T) { - c.RunDockerCmd("compose", "up", "-f", "../../tests/composefiles/demo_multi_port.yaml", "--project-name", projectName, "-d") + c.RunDockerCmd("compose", "up", "-d", "-f", "../../tests/composefiles/demo_multi_port.yaml", "--project-name", projectName, "-d") }) t.Run("check running project", func(t *testing.T) { @@ -95,7 +95,7 @@ func TestLocalComposeVolume(t *testing.T) { const projectName = "compose-e2e-volume" t.Run("up with volume", func(t *testing.T) { - c.RunDockerCmd("compose", "up", "--workdir", "volume-test", "--project-name", projectName) + c.RunDockerCmd("compose", "up", "-d", "--workdir", "volume-test", "--project-name", projectName) output := HTTPGetWithRetry(t, "http://localhost:8090", http.StatusOK, 2*time.Second, 20*time.Second) assert.Assert(t, strings.Contains(output, "Hello from Nginx container"))