(t *testing.T)
| 24 | ) |
| 25 | |
| 26 | func TestRemoveOrphans(t *testing.T) { |
| 27 | c := NewCLI(t) |
| 28 | |
| 29 | const projectName = "compose-e2e-orphans" |
| 30 | defer c.cleanupWithDown(t, projectName) |
| 31 | |
| 32 | c.RunDockerComposeCmd(t, "-f", "./fixtures/orphans/compose.yaml", "-p", projectName, "run", "orphan") |
| 33 | res := c.RunDockerComposeCmd(t, "-p", projectName, "ps", "--all") |
| 34 | assert.Check(t, strings.Contains(res.Combined(), "compose-e2e-orphans-orphan-run-")) |
| 35 | |
| 36 | c.RunDockerComposeCmd(t, "-f", "./fixtures/orphans/compose.yaml", "-p", projectName, "up", "-d") |
| 37 | |
| 38 | res = c.RunDockerComposeCmd(t, "-p", projectName, "ps", "--all") |
| 39 | assert.Check(t, !strings.Contains(res.Combined(), "compose-e2e-orphans-orphan-run-")) |
| 40 | } |
nothing calls this directly
no test coverage detected