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

Function TestBuildUpdateError

pkg/api/build_test.go:245–252  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

243}
244
245func TestBuildUpdateError(t *testing.T) {
246 testServer(t, func(c *stdsdk.Client, p *structs.MockProvider) {
247 var b1 *structs.Build
248 p.On("BuildUpdate", "app1", "build1", structs.BuildUpdateOptions{}).Return(b1, fmt.Errorf("err1"))
249 err := c.Put("/apps/app1/builds/build1", stdsdk.RequestOptions{}, nil)
250 require.EqualError(t, err, "err1")
251 })
252}

Callers

nothing calls this directly

Calls 1

testServerFunction · 0.70

Tested by

no test coverage detected