MCPcopy
hub / github.com/docker/compose / TestStartAlreadyRunning

Function TestStartAlreadyRunning

pkg/e2e/start_stop_test.go:183–195  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

181}
182
183func TestStartAlreadyRunning(t *testing.T) {
184 cli := NewParallelCLI(t, WithEnv(
185 "COMPOSE_PROJECT_NAME=e2e-start-stop-svc-already-running",
186 "COMPOSE_FILE=./fixtures/start-stop/compose.yaml"))
187 t.Cleanup(func() {
188 cli.RunDockerComposeCmd(t, "down", "--remove-orphans", "-v", "-t", "0")
189 })
190
191 cli.RunDockerComposeCmd(t, "up", "-d", "--wait")
192
193 res := cli.RunDockerComposeCmd(t, "start", "simple")
194 assert.Equal(t, res.Stdout(), "", "No output should have been written to stdout")
195}
196
197func TestStopAlreadyStopped(t *testing.T) {
198 cli := NewParallelCLI(t, WithEnv(

Callers

nothing calls this directly

Calls 3

NewParallelCLIFunction · 0.85
WithEnvFunction · 0.85
RunDockerComposeCmdMethod · 0.80

Tested by

no test coverage detected