(t *testing.T)
| 200 | } |
| 201 | |
| 202 | func 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 | } |
nothing calls this directly
no test coverage detected