:tableflip:

pull/23107/head
Richard Belleville 5 years ago
parent 773611c1d1
commit bd7291b020
  1. 5
      src/python/grpcio_tests/commands.py
  2. 5
      src/python/grpcio_tests/tests/unit/_contextvars_propagation_test.py

@ -227,7 +227,10 @@ class TestGevent(setuptools.Command):
)
BANNED_WINDOWS_TESTS = (
# TODO(https://github.com/grpc/grpc/pull/15411) enable this test
'unit._dns_resolver_test.DNSResolverTest.test_connect_loopback',)
'unit._dns_resolver_test.DNSResolverTest.test_connect_loopback',
# TODO(https://github.com/grpc/grpc/issues/22257)
'unit._contextvars_propagation_test.ContextVarsPropagationTest',
)
description = 'run tests with gevent. Assumes grpc/gevent are installed'
user_options = []

@ -103,10 +103,7 @@ class ContextVarsPropagationTest(unittest.TestCase):
def test_propagation_to_auth_plugin(self):
set_up_expected_context()
with _server() as port:
# NOTE(rbellevi): We use a literal IPV6 address because 'localhost'
# is not recognized as a local address by the LocalCredentials
# implementation on Windows.
target = "[::1]:{}".format(port)
target = "localhost:{}".format(port)
local_credentials = grpc.local_channel_credentials()
test_call_credentials = TestCallCredentials()
call_credentials = grpc.metadata_call_credentials(

Loading…
Cancel
Save