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

Function TestWaitAndDrop

pkg/e2e/wait_test.go:91–106  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

89}
90
91func TestWaitAndDrop(t *testing.T) {
92 const projectName = "e2e-wait-and-drop"
93 c := NewParallelCLI(t)
94
95 cleanup := func() {
96 c.RunDockerComposeCmd(t, "--project-name", projectName, "down", "--timeout=0", "--remove-orphans")
97 }
98 t.Cleanup(cleanup)
99 cleanup()
100
101 c.RunDockerComposeCmd(t, "-f", "./fixtures/wait/compose.yaml", "--project-name", projectName, "up", "-d")
102 c.RunDockerComposeCmd(t, "--project-name", projectName, "wait", "--down-project", "faster")
103
104 res := c.RunDockerCmd(t, "ps", "--all")
105 assert.Assert(t, !strings.Contains(res.Combined(), projectName), res.Combined())
106}

Callers

nothing calls this directly

Calls 3

NewParallelCLIFunction · 0.85
RunDockerComposeCmdMethod · 0.80
RunDockerCmdMethod · 0.80

Tested by

no test coverage detected