(t *testing.T)
| 89 | } |
| 90 | |
| 91 | func 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 | } |
nothing calls this directly
no test coverage detected