aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/core
diff options
context:
space:
mode:
authorGravatar ncteisen <ncteisen@gmail.com>2018-10-18 11:42:32 -0700
committerGravatar ncteisen <ncteisen@gmail.com>2018-10-18 12:34:21 -0700
commit0582a003d5385ce16ec13d5e5d1128913f9b59c6 (patch)
tree0a35d570be14c8306fb8cb5169146590f133ef27 /test/core
parenta60226726ae6076916db0e1d616338a1a211770d (diff)
reviewer comments
Diffstat (limited to 'test/core')
-rw-r--r--test/core/end2end/tests/retry_streaming.cc13
1 files changed, 11 insertions, 2 deletions
diff --git a/test/core/end2end/tests/retry_streaming.cc b/test/core/end2end/tests/retry_streaming.cc
index d52574fc58..94a27faf7b 100644
--- a/test/core/end2end/tests/retry_streaming.cc
+++ b/test/core/end2end/tests/retry_streaming.cc
@@ -136,7 +136,7 @@ static void test_retry_streaming(grpc_end2end_test_config config) {
int was_cancelled = 2;
char* peer;
- grpc_arg arg[] = {
+ grpc_arg args[] = {
grpc_channel_arg_integer_create(
const_cast<char*>(GRPC_ARG_MAX_CHANNEL_TRACE_EVENT_MEMORY_PER_NODE),
1024 * 8),
@@ -159,7 +159,7 @@ static void test_retry_streaming(grpc_end2end_test_config config) {
" }\n"
" } ]\n"
"}"))};
- grpc_channel_args client_args = {GPR_ARRAY_SIZE(arg), arg};
+ grpc_channel_args client_args = {GPR_ARRAY_SIZE(args), args};
grpc_end2end_test_fixture f =
begin_test(config, "retry_streaming", &client_args, nullptr);
@@ -399,6 +399,15 @@ static void test_retry_streaming(grpc_end2end_test_config config) {
char* json = channelz_channel->RenderJsonString();
GPR_ASSERT(json != nullptr);
gpr_log(GPR_INFO, "%s", json);
+ GPR_ASSERT(nullptr != strstr(json, "\"trace\""));
+ GPR_ASSERT(nullptr != strstr(json, "\"description\":\"Channel created\""));
+ GPR_ASSERT(nullptr != strstr(json, "\"severity\":\"CT_INFO\""));
+ GPR_ASSERT(nullptr != strstr(json, "Resolution event"));
+ GPR_ASSERT(nullptr != strstr(json, "Created new LB policy"));
+ GPR_ASSERT(nullptr != strstr(json, "Service config changed"));
+ GPR_ASSERT(nullptr != strstr(json, "Address list became non-empty"));
+ GPR_ASSERT(nullptr != strstr(json, "Channel state change to CONNECTING"));
+ gpr_free(json);
grpc_slice_unref(details);
grpc_metadata_array_destroy(&initial_metadata_recv);