disable fork test on windows

pull/17444/head
Eric Gribkoff 6 years ago
parent 468ae0f486
commit 718084c6b4
  1. 2
      src/python/grpcio_tests/tests/unit/_server_shutdown_scenarios.py
  2. 1
      src/python/grpcio_tests/tests/unit/_server_shutdown_test.py

@ -63,7 +63,7 @@ class GenericHandler(grpc.GenericRpcHandler):
return None
def run_server(port_queue,):
def run_server(port_queue):
server = grpc.server(
futures.ThreadPoolExecutor(max_workers=10),
options=(('grpc.so_reuseport', 0),))

@ -74,6 +74,7 @@ class ServerShutdown(unittest.TestCase):
stderr=sys.stderr)
wait(process)
@unittest.skipIf(os.name == 'nt', 'fork not supported on windows')
def test_server_fork_can_exit(self):
process = subprocess.Popen(
BASE_COMMAND + [_server_shutdown_scenarios.SERVER_FORK_CAN_EXIT],

Loading…
Cancel
Save