add test coverage for channel_connectivity check

pull/4407/head
yang-g 9 years ago
parent e73499782a
commit 5a3bc8ea7f
  1. 4
      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,

Loading…
Cancel
Save