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

Function TestProcessStop

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

Source from the content-addressed store, hash-verified

254}
255
256func TestProcessStop(t *testing.T) {
257 testServer(t, func(c *stdsdk.Client, p *structs.MockProvider) {
258 p.On("ProcessStop", "app1", "pid1").Return(nil)
259 err := c.Delete("/apps/app1/processes/pid1", stdsdk.RequestOptions{}, nil)
260 require.NoError(t, err)
261 })
262}
263
264func TestProcessStopError(t *testing.T) {
265 testServer(t, func(c *stdsdk.Client, p *structs.MockProvider) {

Callers

nothing calls this directly

Calls 1

testServerFunction · 0.70

Tested by

no test coverage detected