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

Function TestSystemUpdateError

pkg/api/system_test.go:202–208  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

200}
201
202func TestSystemUpdateError(t *testing.T) {
203 testServer(t, func(c *stdsdk.Client, p *structs.MockProvider) {
204 p.On("SystemUpdate", structs.SystemUpdateOptions{}).Return(fmt.Errorf("err1"))
205 err := c.Put("/system", stdsdk.RequestOptions{}, nil)
206 require.EqualError(t, err, "err1")
207 })
208}

Callers

nothing calls this directly

Calls 1

testServerFunction · 0.70

Tested by

no test coverage detected