diff options
author | David G. Quintas <dgq@google.com> | 2016-11-15 09:45:41 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-15 09:45:41 -0800 |
commit | d1bc240f1088f6571afe4903776e0c2f422eb3a9 (patch) | |
tree | 9c410a52c6eec9d98cbceb6d4b5e4d71cb56e647 /test | |
parent | f392ce9598b39d4675a4a2f212488d53099ade80 (diff) | |
parent | 4270dc6d6ef5223d20baaa9d4e8343cf5108a898 (diff) |
Merge pull request #8751 from dgquintas/undo_bad_merge_fakeresolver
Updated test_get_channel_info() to use new ch arg syntax
Diffstat (limited to 'test')
-rw-r--r-- | test/core/client_channel/lb_policies_test.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/test/core/client_channel/lb_policies_test.c b/test/core/client_channel/lb_policies_test.c index 198aafb91f..7b1c47e9dd 100644 --- a/test/core/client_channel/lb_policies_test.c +++ b/test/core/client_channel/lb_policies_test.c @@ -642,8 +642,16 @@ static void test_pending_calls(size_t concurrent_calls) { } static void test_get_channel_info() { - grpc_channel *channel = grpc_insecure_channel_create( - "test:127.0.0.1:1234?lb_policy=round_robin", NULL, NULL); + grpc_channel_args args; + grpc_arg arg_array[1]; + arg_array[0].type = GRPC_ARG_STRING; + arg_array[0].key = GRPC_ARG_LB_POLICY_NAME; + arg_array[0].value.string = "round_robin"; + args.num_args = 1; + args.args = arg_array; + + grpc_channel *channel = + grpc_insecure_channel_create("ipv4:127.0.0.1:1234", &args, NULL); // Ensures that resolver returns. grpc_channel_check_connectivity_state(channel, true /* try_to_connect */); // Use grpc_channel_get_info() to get LB policy name. |