diff options
author | ncteisen <ncteisen@gmail.com> | 2018-05-09 11:10:21 -0700 |
---|---|---|
committer | ncteisen <ncteisen@gmail.com> | 2018-06-05 16:59:25 -0700 |
commit | c3c6e064b33ab8b7a2d3cf5a56171029d0bb1edc (patch) | |
tree | 3dce184ad675ba2ff3adbaf034209a0076c03754 /test/core/end2end/tests | |
parent | b69f1f6aacad86bdc72e25085d74e64f17f32195 (diff) |
Add basic support for GetChannel
Diffstat (limited to 'test/core/end2end/tests')
-rw-r--r-- | test/core/end2end/tests/simple_request.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/core/end2end/tests/simple_request.cc b/test/core/end2end/tests/simple_request.cc index 941d9ae319..6e36e54cd3 100644 --- a/test/core/end2end/tests/simple_request.cc +++ b/test/core/end2end/tests/simple_request.cc @@ -21,6 +21,9 @@ #include <stdio.h> #include <string.h> +#include "src/core/ext/filters/client_channel/client_channel.h" +#include "src/core/lib/surface/channel.h" + #include <grpc/byte_buffer.h> #include <grpc/grpc.h> #include <grpc/support/alloc.h> @@ -198,6 +201,10 @@ static void simple_request_body(grpc_end2end_test_config config, CQ_EXPECT_COMPLETION(cqv, tag(1), 1); cq_verify(cqv); + char* json = grpc_channel_render_channelz(f.client); + gpr_log(GPR_ERROR, "%s", json); + gpr_free(json); + GPR_ASSERT(status == GRPC_STATUS_UNIMPLEMENTED); GPR_ASSERT(0 == grpc_slice_str_cmp(details, "xyz")); // the following sanity check makes sure that the requested error string is |