diff --git a/src/python/grpcio_tests/tests/unit/_contextvars_propagation_test.py b/src/python/grpcio_tests/tests/unit/_contextvars_propagation_test.py index 9e3e4beaf68..538199b6def 100644 --- a/src/python/grpcio_tests/tests/unit/_contextvars_propagation_test.py +++ b/src/python/grpcio_tests/tests/unit/_contextvars_propagation_test.py @@ -106,7 +106,7 @@ class ContextVarsPropagationTest(unittest.TestCase): # NOTE(rbellevi): We use a literal IPV6 address because 'localhost' # is not recognized as a local address by the LocalCredentials # implementation on Windows. - target = "[::]:{}".format(port) + target = "[::1]:{}".format(port) local_credentials = grpc.local_channel_credentials() test_call_credentials = TestCallCredentials() call_credentials = grpc.metadata_call_credentials(