diff options
author | ncteisen <ncteisen@gmail.com> | 2018-06-07 12:55:15 -0700 |
---|---|---|
committer | ncteisen <ncteisen@gmail.com> | 2018-06-07 12:55:15 -0700 |
commit | d23739eda3081a274fad4f3a6af400fbca39dee1 (patch) | |
tree | 6a2e36bc6f4190a60b51762513ea5b4c20207baf /test/core/end2end | |
parent | c845ba66f30c44120f80098774652ba644ed7652 (diff) |
Reviewer feedback
Diffstat (limited to 'test/core/end2end')
-rw-r--r-- | test/core/end2end/tests/simple_request.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/test/core/end2end/tests/simple_request.cc b/test/core/end2end/tests/simple_request.cc index a9341edff9..57c1161641 100644 --- a/test/core/end2end/tests/simple_request.cc +++ b/test/core/end2end/tests/simple_request.cc @@ -258,7 +258,8 @@ static void test_invoke_simple_request(grpc_end2end_test_config config) { // The following is a quick sanity check on channelz functionality. It // ensures that core properly tracked the one call that occurred in this // simple end2end test. - char* json = grpc_channel_render_channelz(f.client); + grpc_core::channelz::Channel* channelz_channel = grpc_channel_get_channelz_channel_node(f.client); + char* json = channelz_channel->RenderJSON(); GPR_ASSERT(nullptr != strstr(json, "\"callsStarted\":\"1\"")); GPR_ASSERT(nullptr != strstr(json, "\"callsFailed\":\"1\"")); GPR_ASSERT(nullptr != strstr(json, "\"callsSucceeded\":\"-1\"")); @@ -279,7 +280,8 @@ static void test_invoke_10_simple_requests(grpc_end2end_test_config config) { // The following is a quick sanity check on channelz functionality. It // ensures that core properly tracked the ten calls that occurred. - char* json = grpc_channel_render_channelz(f.client); + grpc_core::channelz::Channel* channelz_channel = grpc_channel_get_channelz_channel_node(f.client); + char* json = channelz_channel->RenderJSON(); GPR_ASSERT(nullptr != strstr(json, "\"callsStarted\":\"10\"")); GPR_ASSERT(nullptr != strstr(json, "\"callsFailed\":\"10\"")); GPR_ASSERT(nullptr != strstr(json, "\"callsSucceeded\":\"-1\"")); |