aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/core
diff options
context:
space:
mode:
authorGravatar Craig Tiller <ctiller@google.com>2016-03-30 08:05:58 -0700
committerGravatar Craig Tiller <ctiller@google.com>2016-03-30 08:05:58 -0700
commit6771361fada605596428e7ce332ef28277323d2e (patch)
tree32417052664ec7848b9452dbd4e6a75a8b39b5c5 /test/core
parentdd2b465a458a59371ad9b2a550cf797d0d9b78df (diff)
parentfa51d186d9f7c8594afe48bf93bd22767f1c01e2 (diff)
Merge github.com:grpc/grpc into optionalize_roundrobin
Diffstat (limited to 'test/core')
-rw-r--r--test/core/client_config/lb_policies_test.c8
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 fcb8630cab..ac42891f94 100644
--- a/test/core/client_config/lb_policies_test.c
+++ b/test/core/client_config/lb_policies_test.c
@@ -872,6 +872,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;
@@ -881,9 +882,9 @@ int main(int argc, char **argv) {
grpc_init();
grpc_tracer_set_enabled("round_robin", 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 */
@@ -935,6 +936,7 @@ int main(int argc, char **argv) {
test_pending_calls(4);
test_ping();
+ grpc_exec_ctx_finish(&exec_ctx);
grpc_shutdown();
return 0;
}