[testing] minor logging improvement in http cli tests (#35654)

as title

Closes #35654

COPYBARA_INTEGRATE_REVIEW=https://github.com/grpc/grpc/pull/35654 from apolcyn:fix_logs eb1fbcd7a5
PiperOrigin-RevId: 601198258
pull/35448/merge
apolcyn 1 year ago committed by Copybara-Service
parent acdd07635e
commit 7d5b53e2a7
  1. 2
      test/core/http/httpcli_test.cc
  2. 2
      test/core/http/httpscli_test.cc

@ -160,10 +160,10 @@ void OnFinish(void* arg, grpc_error_handle error) {
const char* expect =
"<html><head><title>Hello world!</title></head>"
"<body><p>This is a test</p></body></html>";
GPR_ASSERT(error.ok());
grpc_http_response response = request_state->response;
gpr_log(GPR_INFO, "response status=%d error=%s", response.status,
grpc_core::StatusToString(error).c_str());
GPR_ASSERT(error.ok());
GPR_ASSERT(response.status == 200);
GPR_ASSERT(response.body_length == strlen(expect));
GPR_ASSERT(0 == memcmp(expect, response.body, response.body_length));

@ -161,10 +161,10 @@ void OnFinish(void* arg, grpc_error_handle error) {
const char* expect =
"<html><head><title>Hello world!</title></head>"
"<body><p>This is a test</p></body></html>";
GPR_ASSERT(error.ok());
grpc_http_response response = request_state->response;
gpr_log(GPR_INFO, "response status=%d error=%s", response.status,
grpc_core::StatusToString(error).c_str());
GPR_ASSERT(error.ok());
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