diff options
author | Jan Tattermusch <jtattermusch@users.noreply.github.com> | 2016-03-30 07:25:42 -0700 |
---|---|---|
committer | Jan Tattermusch <jtattermusch@users.noreply.github.com> | 2016-03-30 07:25:42 -0700 |
commit | 58b66f5a0f27099aee212bb476b0834c0e494765 (patch) | |
tree | 3dd107aee5779b20025e9eaa1dbb0ed83ec3c508 /test | |
parent | e8e100f38a6fe47c073b74954b3559dbea6ad89d (diff) | |
parent | 3c05db5b0b4fd5fcd5f93ab7d0844ade41971fc2 (diff) |
Merge pull request #5950 from dgquintas/lb_policies_new_interface
Changes to resolver-LB interfaces.
Diffstat (limited to 'test')
-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; } |