diff options
author | Vijay Pai <vpai@google.com> | 2016-03-30 14:55:38 -0700 |
---|---|---|
committer | Vijay Pai <vpai@google.com> | 2016-03-30 14:55:38 -0700 |
commit | 828558ac4a8c18134a76dc94126f96627789770a (patch) | |
tree | fafb5e60cd168876f5e7ce66b67d91d844434026 /test/core/client_config/lb_policies_test.c | |
parent | d9389a849d29c304ad57388967824d2d9f2e2550 (diff) | |
parent | 503c3caf0804c7b9e2619f7c58de6b2b415a8fb0 (diff) |
Merge branch 'master' into i_know_rubies
Diffstat (limited to 'test/core/client_config/lb_policies_test.c')
-rw-r--r-- | test/core/client_config/lb_policies_test.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/test/core/client_config/lb_policies_test.c b/test/core/client_config/lb_policies_test.c index bae3e7d18c..bc7040de77 100644 --- a/test/core/client_config/lb_policies_test.c +++ b/test/core/client_config/lb_policies_test.c @@ -873,6 +873,7 @@ static void verify_rebirth_round_robin(const servers_fixture *f, } int main(int argc, char **argv) { + grpc_exec_ctx exec_ctx = GRPC_EXEC_CTX_INIT; test_spec *spec; size_t i; const size_t NUM_ITERS = 10; @@ -882,9 +883,9 @@ int main(int argc, char **argv) { grpc_init(); grpc_lb_round_robin_trace = 1; - GPR_ASSERT(grpc_lb_policy_create("this-lb-policy-does-not-exist", NULL) == - NULL); - GPR_ASSERT(grpc_lb_policy_create(NULL, NULL) == NULL); + GPR_ASSERT(grpc_lb_policy_create(&exec_ctx, "this-lb-policy-does-not-exist", + NULL) == NULL); + GPR_ASSERT(grpc_lb_policy_create(&exec_ctx, NULL, NULL) == NULL); spec = test_spec_create(NUM_ITERS, NUM_SERVERS); /* everything is fine, all servers stay up the whole time and life's peachy */ @@ -936,6 +937,7 @@ int main(int argc, char **argv) { test_pending_calls(4); test_ping(); + grpc_exec_ctx_finish(&exec_ctx); grpc_shutdown(); return 0; } |