MCPcopy Create free account
hub / github.com/convox/rack / TestProcessStopError

Function TestProcessStopError

pkg/api/process_test.go:264–270  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

262}
263
264func TestProcessStopError(t *testing.T) {
265 testServer(t, func(c *stdsdk.Client, p *structs.MockProvider) {
266 p.On("ProcessStop", "app1", "pid1").Return(fmt.Errorf("err1"))
267 err := c.Delete("/apps/app1/processes/pid1", stdsdk.RequestOptions{}, nil)
268 require.EqualError(t, err, "err1")
269 })
270}

Callers

nothing calls this directly

Calls 1

testServerFunction · 0.70

Tested by

no test coverage detected