aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/core/client_channel
diff options
context:
space:
mode:
authorGravatar Yuchen Zeng <zyc@google.com>2017-06-04 01:41:15 -0700
committerGravatar Yuchen Zeng <zyc@google.com>2017-06-04 01:41:15 -0700
commit3b4bed273cd38964d097cb110f894c9963137af2 (patch)
treecdbd3532bb9b90793daea4753004a7a2a1d79649 /test/core/client_channel
parent24e3bc5510bfee61d9f62feac95fbe32b1267b85 (diff)
Cancel the dns lookup in dns_ares_shutdown
Diffstat (limited to 'test/core/client_channel')
-rw-r--r--test/core/client_channel/resolvers/dns_resolver_connectivity_test.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/test/core/client_channel/resolvers/dns_resolver_connectivity_test.c b/test/core/client_channel/resolvers/dns_resolver_connectivity_test.c
index 35b73a355c..df7a693287 100644
--- a/test/core/client_channel/resolvers/dns_resolver_connectivity_test.c
+++ b/test/core/client_channel/resolvers/dns_resolver_connectivity_test.c
@@ -72,12 +72,10 @@ static void my_resolve_address(grpc_exec_ctx *exec_ctx, const char *addr,
grpc_closure_sched(exec_ctx, on_done, error);
}
-static void my_dns_lookup_ares(grpc_exec_ctx *exec_ctx, const char *dns_server,
- const char *addr, const char *default_port,
- grpc_pollset_set *interested_parties,
- grpc_closure *on_done,
- grpc_lb_addresses **lb_addrs,
- bool check_grpclb) {
+static grpc_ares_request *my_dns_lookup_ares(
+ grpc_exec_ctx *exec_ctx, const char *dns_server, const char *addr,
+ const char *default_port, grpc_pollset_set *interested_parties,
+ grpc_closure *on_done, grpc_lb_addresses **lb_addrs, bool check_grpclb) {
gpr_mu_lock(&g_mu);
GPR_ASSERT(0 == strcmp("test", addr));
grpc_error *error = GRPC_ERROR_NONE;
@@ -91,6 +89,7 @@ static void my_dns_lookup_ares(grpc_exec_ctx *exec_ctx, const char *dns_server,
grpc_lb_addresses_set_address(*lb_addrs, 0, NULL, 0, NULL, NULL, NULL);
}
grpc_closure_sched(exec_ctx, on_done, error);
+ return NULL;
}
static grpc_resolver *create_resolver(grpc_exec_ctx *exec_ctx,