diff --git a/test/core/http/httpcli_test.cc b/test/core/http/httpcli_test.cc index 4a2a2ea570f..070e7bb7311 100644 --- a/test/core/http/httpcli_test.cc +++ b/test/core/http/httpcli_test.cc @@ -160,10 +160,10 @@ void OnFinish(void* arg, grpc_error_handle error) { const char* expect = "Hello world!" "

This is a test

"; - 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)); diff --git a/test/core/http/httpscli_test.cc b/test/core/http/httpscli_test.cc index 82d35509143..56cec9d1522 100644 --- a/test/core/http/httpscli_test.cc +++ b/test/core/http/httpscli_test.cc @@ -161,10 +161,10 @@ void OnFinish(void* arg, grpc_error_handle error) { const char* expect = "Hello world!" "

This is a test

"; - 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));