Merge pull request #20079 from lidizheng/stop

Stop the failing Python LocalCredentials test on Windows
pull/20092/head
Lidi Zheng 6 years ago committed by GitHub
commit 392669ad37
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      src/python/grpcio_tests/tests/unit/_local_credentials_test.py

@ -14,6 +14,7 @@
"""Test of RPCs made using local credentials.""" """Test of RPCs made using local credentials."""
import unittest import unittest
import os
from concurrent.futures import ThreadPoolExecutor from concurrent.futures import ThreadPoolExecutor
import grpc import grpc
@ -32,6 +33,8 @@ class LocalCredentialsTest(unittest.TestCase):
server.add_generic_rpc_handlers((_GenericHandler(),)) server.add_generic_rpc_handlers((_GenericHandler(),))
return server return server
@unittest.skipIf(os.name == 'nt',
'TODO(https://github.com/grpc/grpc/issues/20078)')
def test_local_tcp(self): def test_local_tcp(self):
server_addr = 'localhost:{}' server_addr = 'localhost:{}'
channel_creds = grpc.local_channel_credentials( channel_creds = grpc.local_channel_credentials(
@ -49,6 +52,8 @@ class LocalCredentialsTest(unittest.TestCase):
b'abc', wait_for_ready=True)) b'abc', wait_for_ready=True))
server.stop(None) server.stop(None)
@unittest.skipIf(os.name == 'nt',
'Unix Domain Socket is not supported on Windows')
def test_uds(self): def test_uds(self):
server_addr = 'unix:/tmp/grpc_fullstack_test' server_addr = 'unix:/tmp/grpc_fullstack_test'
channel_creds = grpc.local_channel_credentials( channel_creds = grpc.local_channel_credentials(

Loading…
Cancel
Save