aboutsummaryrefslogtreecommitdiffhomepage
path: root/templates/test/cpp/naming/resolver_component_tests_defs.include
diff options
context:
space:
mode:
authorGravatar Alexander Polcyn <apolcyn@google.com>2018-03-08 17:41:30 -0800
committerGravatar Alexander Polcyn <apolcyn@google.com>2018-06-06 13:55:13 -0700
commit27718ce64dc1d5dcfc954aa6748191259fc68c59 (patch)
tree526f314618b00235d9f9675901788fb195d9e1f7 /templates/test/cpp/naming/resolver_component_tests_defs.include
parentf03344e73a4e0eafb969fe4675babcb50ac08ae6 (diff)
Fix c-ares tests ipv6-only brokenness
Diffstat (limited to 'templates/test/cpp/naming/resolver_component_tests_defs.include')
-rw-r--r--templates/test/cpp/naming/resolver_component_tests_defs.include6
1 files changed, 3 insertions, 3 deletions
diff --git a/templates/test/cpp/naming/resolver_component_tests_defs.include b/templates/test/cpp/naming/resolver_component_tests_defs.include
index bc981dc83e..c3c3b68672 100644
--- a/templates/test/cpp/naming/resolver_component_tests_defs.include
+++ b/templates/test/cpp/naming/resolver_component_tests_defs.include
@@ -58,7 +58,7 @@ def wait_until_dns_server_is_up(args,
test_runner_log('Health check: attempt to connect to DNS server over TCP.')
tcp_connect_subprocess = subprocess.Popen([
args.tcp_connect_bin_path,
- '--server_host', '127.0.0.1',
+ '--server_host', '::1',
'--server_port', str(args.dns_server_port),
'--timeout', str(1)])
tcp_connect_subprocess.communicate()
@@ -68,7 +68,7 @@ def wait_until_dns_server_is_up(args,
dns_resolver_subprocess = subprocess.Popen([
args.dns_resolver_bin_path,
'--qname', 'health-check-local-dns-server-is-alive.resolver-tests.grpctestingexp',
- '--server_host', '127.0.0.1',
+ '--server_host', '::1',
'--server_port', str(args.dns_server_port)],
stdout=subprocess.PIPE)
dns_resolver_stdout, _ = dns_resolver_subprocess.communicate()
@@ -125,7 +125,7 @@ current_test_subprocess = subprocess.Popen([\
\
% endfor
- '--local_dns_server_address', '127.0.0.1:%d' % args.dns_server_port])\
+ '--local_dns_server_address', '[::1]:%d' % args.dns_server_port])\
current_test_subprocess.communicate()\