Log error message for debugging #14700

pull/15527/head
Yash Tibrewal 7 years ago
parent 463e4d5619
commit 64321c0618
  1. 3
      test/core/http/httpcli_test.cc
  2. 3
      test/core/http/httpscli_test.cc

@ -47,7 +47,8 @@ static void on_finish(void* arg, grpc_error* error) {
"<body><p>This is a test</p></body></html>";
grpc_http_response* response = static_cast<grpc_http_response*>(arg);
GPR_ASSERT(response);
gpr_log(GPR_INFO, "response status %d", response->status);
gpr_log(GPR_INFO, "response status=%d error=%s", response->status,
grpc_error_string(error));
GPR_ASSERT(response->status == 200);
GPR_ASSERT(response->body_length == strlen(expect));
GPR_ASSERT(0 == memcmp(expect, response->body, response->body_length));

@ -49,7 +49,8 @@ static void on_finish(void* arg, grpc_error* error) {
"<body><p>This is a test</p></body></html>";
grpc_http_response* response = static_cast<grpc_http_response*>(arg);
GPR_ASSERT(response);
gpr_log(GPR_INFO, "response status %d", response->status);
gpr_log(GPR_INFO, "response status=%d error=%s", response->status,
grpc_error_string(error));
GPR_ASSERT(response->status == 200);
GPR_ASSERT(response->body_length == strlen(expect));
GPR_ASSERT(0 == memcmp(expect, response->body, response->body_length));

Loading…
Cancel
Save