diff options
author | yang-g <yangg@google.com> | 2015-12-10 14:48:37 -0800 |
---|---|---|
committer | yang-g <yangg@google.com> | 2015-12-10 14:48:37 -0800 |
commit | 5a3bc8ea7f79c7d7be33a6726b3cb2ab18d5743f (patch) | |
tree | f3b91e6304dce8ccc1163431be3abe32ece14cfc | |
parent | e73499782a562dde0d0ac3244845de4c0f2c574f (diff) |
add test coverage for channel_connectivity check
-rw-r--r-- | test/core/surface/lame_client_test.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/core/surface/lame_client_test.c b/test/core/surface/lame_client_test.c index fd57dd02f9..971055e6fd 100644 --- a/test/core/surface/lame_client_test.c +++ b/test/core/surface/lame_client_test.c @@ -65,6 +65,10 @@ int main(int argc, char **argv) { chan = grpc_lame_client_channel_create( "lampoon:national", GRPC_STATUS_UNKNOWN, "Rpc sent on a lame channel."); GPR_ASSERT(chan); + + GPR_ASSERT(GRPC_CHANNEL_FATAL_FAILURE == + grpc_channel_check_connectivity_state(chan, 0)); + cq = grpc_completion_queue_create(NULL); call = grpc_channel_create_call(chan, NULL, GRPC_PROPAGATE_DEFAULTS, cq, |