Skip to content

Commit aacd881

Browse files
committed
Add -d flag in e2e tests now that docker compose up attaches to logs by default
Signed-off-by: Guillaume Tardif <[email protected]>
1 parent 0b2eaed commit aacd881

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

local/e2e/compose_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ func TestLocalComposeUp(t *testing.T) {
4545
})
4646

4747
t.Run("up", func(t *testing.T) {
48-
c.RunDockerCmd("compose", "up", "-f", "../../tests/composefiles/demo_multi_port.yaml", "--project-name", projectName, "-d")
48+
c.RunDockerCmd("compose", "up", "-d", "-f", "../../tests/composefiles/demo_multi_port.yaml", "--project-name", projectName, "-d")
4949
})
5050

5151
t.Run("check running project", func(t *testing.T) {
@@ -95,7 +95,7 @@ func TestLocalComposeVolume(t *testing.T) {
9595
const projectName = "compose-e2e-volume"
9696

9797
t.Run("up with volume", func(t *testing.T) {
98-
c.RunDockerCmd("compose", "up", "--workdir", "volume-test", "--project-name", projectName)
98+
c.RunDockerCmd("compose", "up", "-d", "--workdir", "volume-test", "--project-name", projectName)
9999

100100
output := HTTPGetWithRetry(t, "http://localhost:8090", http.StatusOK, 2*time.Second, 20*time.Second)
101101
assert.Assert(t, strings.Contains(output, "Hello from Nginx container"))

0 commit comments

Comments
 (0)