Merge pull request #16421 from mehrdada/stricter-api-contract-for-grpc-server

Ensure thread_pool is not None for grpc.Server
pull/16425/head
Mehrdad Afshari 6 years ago committed by GitHub
commit 35cde99212
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      src/python/grpcio_tests/tests/unit/_channel_args_test.py

@ -13,6 +13,7 @@
# limitations under the License.
"""Tests of Channel Args on client/server side."""
from concurrent import futures
import unittest
import grpc
@ -39,7 +40,9 @@ class ChannelArgsTest(unittest.TestCase):
grpc.insecure_channel('localhost:8080', options=TEST_CHANNEL_ARGS)
def test_server(self):
grpc.server(None, options=TEST_CHANNEL_ARGS)
grpc.server(
futures.ThreadPoolExecutor(max_workers=1),
options=TEST_CHANNEL_ARGS)
if __name__ == '__main__':

Loading…
Cancel
Save