(t *testing.T)
| 141 | } |
| 142 | |
| 143 | func TestScaleDoesntRecreate(t *testing.T) { |
| 144 | c := NewCLI(t) |
| 145 | const projectName = "compose-e2e-scale" |
| 146 | t.Cleanup(func() { |
| 147 | c.RunDockerComposeCmd(t, "--project-name", projectName, "down") |
| 148 | }) |
| 149 | |
| 150 | c.RunDockerComposeCmd(t, "-f", "fixtures/simple-composefile/compose.yaml", "--project-name", projectName, "up", "-d") |
| 151 | |
| 152 | res := c.RunDockerComposeCmd(t, "-f", "fixtures/simple-composefile/compose.yaml", "--project-name", projectName, "up", "--scale", "simple=2", "-d") |
| 153 | assert.Check(t, !strings.Contains(res.Combined(), "Recreated")) |
| 154 | } |
| 155 | |
| 156 | func TestUpWithDependencyNotRequired(t *testing.T) { |
| 157 | c := NewCLI(t) |
nothing calls this directly
no test coverage detected
searching dependent graphs…