fix python dns resolver tests on kokoro MacService (#28344)

reviewable/pr27867/r1^2
Jan Tattermusch 3 years ago committed by GitHub
parent f8a5022a26
commit 09e5ca15c5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      src/python/grpcio_tests/tests/unit/_dns_resolver_test.py

@ -50,7 +50,11 @@ class DNSResolverTest(unittest.TestCase):
# NOTE(https://github.com/grpc/grpc/issues/18422)
# In short, Gevent + C-Ares = Segfault. The C-Ares driver is not
# supported by custom io manager like "gevent"
with grpc.insecure_channel('loopback4.unittest.grpc.io:%d' %
# NOTE(b/201064791): use loopback46.unittest.grpc.io since
# it returns the expected responses even when DNS64 dns servers
# are used on the test worker (and for purposes of this
# test the use of loopback4 vs loopback46 makes no difference).
with grpc.insecure_channel('loopback46.unittest.grpc.io:%d' %
self._port) as channel:
self.assertEqual(
channel.unary_unary(_METHOD)(

Loading…
Cancel
Save