aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/core/end2end/tests/simple_request.cc
diff options
context:
space:
mode:
Diffstat (limited to 'test/core/end2end/tests/simple_request.cc')
-rw-r--r--test/core/end2end/tests/simple_request.cc7
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