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

Function assertGatewayStatus

rest/api_test.go:397–403  ·  view source on GitHub ↗

assertGatewayStatus is like requireStatus but with StatusGatewayTimeout error checking for temporary network failures.

(t *testing.T, response *TestResponse, expected int)

Source from the content-addressed store, hash-verified

395
396// assertGatewayStatus is like requireStatus but with StatusGatewayTimeout error checking for temporary network failures.
397func assertGatewayStatus(t *testing.T, response *TestResponse, expected int) {
398 if response.Code == http.StatusGatewayTimeout {
399 respBody := response.Body.String()
400 t.Skipf("WARNING: Host could not be reached: %s", respBody)
401 }
402 RequireStatus(t, response, expected)
403}
404
405func TestBulkDocs(t *testing.T) {
406 tests := []struct {

Callers 2

Calls 2

RequireStatusFunction · 0.85
StringMethod · 0.65

Tested by

no test coverage detected