Fix interop tests on Windows

pull/7195/head
Masood Malekghassemi 9 years ago
parent fbf15e436f
commit 3a9e6d9770
  1. 2
      src/python/grpcio_tests/tests/interop/_insecure_interop_test.py
  2. 2
      src/python/grpcio_tests/tests/interop/_secure_interop_test.py

@ -48,7 +48,7 @@ class InsecureInteropTest(
port = self.server.add_insecure_port('[::]:0')
self.server.start()
self.stub = test_pb2.beta_create_TestService_stub(
implementations.insecure_channel('[::]', port))
implementations.insecure_channel('localhost', port))
def tearDown(self):
self.server.stop(0)

@ -55,7 +55,7 @@ class SecureInteropTest(
self.server.start()
self.stub = test_pb2.beta_create_TestService_stub(
test_utilities.not_really_secure_channel(
'[::]', port, implementations.ssl_channel_credentials(
'localhost', port, implementations.ssl_channel_credentials(
resources.test_root_certificates()),
_SERVER_HOST_OVERRIDE))

Loading…
Cancel
Save