MCPcopy Create free account
hub / github.com/docker/compose / TestUpExitCodeFromContainerKilled

Function TestUpExitCodeFromContainerKilled

pkg/e2e/compose_up_test.go:61–69  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

59}
60
61func TestUpExitCodeFromContainerKilled(t *testing.T) {
62 c := NewParallelCLI(t)
63 const projectName = "e2e-exit-code-from-kill"
64
65 res := c.RunDockerComposeCmdNoCheck(t, "-f", "fixtures/start-fail/start-depends_on-long-lived.yaml", "--project-name", projectName, "up", "--menu=false", "--exit-code-from=test")
66 res.Assert(t, icmd.Expected{ExitCode: 143})
67
68 c.RunDockerComposeCmd(t, "--project-name", projectName, "down", "--remove-orphans")
69}
70
71func TestPortRange(t *testing.T) {
72 c := NewParallelCLI(t)

Callers

nothing calls this directly

Calls 3

NewParallelCLIFunction · 0.85
RunDockerComposeCmdMethod · 0.80

Tested by

no test coverage detected