(t *testing.T)
| 26 | ) |
| 27 | |
| 28 | func TestCascadeStop(t *testing.T) { |
| 29 | c := NewCLI(t) |
| 30 | const projectName = "compose-e2e-cascade-stop" |
| 31 | t.Cleanup(func() { |
| 32 | c.RunDockerComposeCmd(t, "--project-name", projectName, "down") |
| 33 | }) |
| 34 | |
| 35 | res := c.RunDockerComposeCmd(t, "-f", "./fixtures/cascade/compose.yaml", "--project-name", projectName, |
| 36 | "up", "--abort-on-container-exit") |
| 37 | assert.Assert(t, strings.Contains(res.Combined(), "exit-1 exited with code 0"), res.Combined()) |
| 38 | // no --exit-code-from, so this is not an error |
| 39 | assert.Equal(t, res.ExitCode, 0) |
| 40 | } |
| 41 | |
| 42 | func TestCascadeFail(t *testing.T) { |
| 43 | c := NewCLI(t) |
nothing calls this directly
no test coverage detected