assertGatewayStatus is like requireStatus but with StatusGatewayTimeout error checking for temporary network failures.
(t *testing.T, response *TestResponse, expected int)
| 395 | |
| 396 | // assertGatewayStatus is like requireStatus but with StatusGatewayTimeout error checking for temporary network failures. |
| 397 | func 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 | |
| 405 | func TestBulkDocs(t *testing.T) { |
| 406 | tests := []struct { |
no test coverage detected