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

Function TestInstanceTerminateError

pkg/api/instance_test.go:115–121  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

113}
114
115func TestInstanceTerminateError(t *testing.T) {
116 testServer(t, func(c *stdsdk.Client, p *structs.MockProvider) {
117 p.On("InstanceTerminate", "instance1").Return(fmt.Errorf("err1"))
118 err := c.Delete("/instances/instance1", stdsdk.RequestOptions{}, nil)
119 require.EqualError(t, err, "err1")
120 })
121}

Callers

nothing calls this directly

Calls 1

testServerFunction · 0.70

Tested by

no test coverage detected