if (debug)
i_debug("RESPONSE: %u %s", resp->status, resp->reason);
- test_assert((resp->status / 100) > 2);
+ test_assert(http_response_is_internal_error(resp));
test_assert(resp->reason != NULL && *resp->reason != '\0');
i_free(ctx);
io_loop_stop(ioloop);
ctx->first = FALSE;
ctx->to = timeout_add_short(500, test_client_peer_reuse_failure_next, ctx);
} else {
- test_assert(resp->status == HTTP_CLIENT_REQUEST_ERROR_CONNECT_FAILED);
+ test_assert(http_response_is_internal_error(resp));
}
test_assert(resp->reason != NULL && *resp->reason != '\0');