diff options
author | David Garcia Quintas <dgq@google.com> | 2016-03-25 01:37:53 -0700 |
---|---|---|
committer | David Garcia Quintas <dgq@google.com> | 2016-03-25 17:39:13 -0700 |
commit | 67c0d04d052b43b8e29fd0de0abf883f61375fcd (patch) | |
tree | a8ada82afcf2163b6db08690d091c55f05d8df98 /test/core | |
parent | 36da240b211bb27691c187adda31ece1322b31c3 (diff) |
Changes to resolver-lb interfaces.
- Creation of a load balancer now takes an execution context.
- load balancers are now passed addresses as arguments and are responsible for
the creation of the corresponding subchannels, something that used to be done
by the resolvers.
Diffstat (limited to 'test/core')
-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 1ea0c423c1..9b4793bf5c 100644 --- a/test/core/client_config/lb_policies_test.c +++ b/test/core/client_config/lb_policies_test.c @@ -870,6 +870,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; @@ -879,9 +880,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 */ @@ -933,6 +934,7 @@ int main(int argc, char **argv) { test_pending_calls(4); test_ping(); + grpc_exec_ctx_finish(&exec_ctx); grpc_shutdown(); return 0; } |