MCPcopy Create free account
hub / github.com/couchbase/sync_gateway / RequireStatus

Method RequireStatus

rest/utilities_testing_bootstrap.go:77–79  ·  view source on GitHub ↗

RequireStatus fails the test if the this response does not have the expected status code.

(status int)

Source from the content-addressed store, hash-verified

75
76// RequireStatus fails the test if the this response does not have the expected status code.
77func (r *boostrapResponse) RequireStatus(status int) {
78 require.Equal(r.t, status, r.response.StatusCode, "unexpected status code for %s - body: %s", r.url, r.Body)
79}
80
81// AssertResponse asserts the status code and body of the response.
82func (r *boostrapResponse) AssertResponse(status int, body string) {

Calls 1

EqualMethod · 0.45