Ensure thread_pool is not None for grpc.Server

pull/16421/head
Mehrdad Afshari 7 years ago
parent 82bc60c0e1
commit 0aa1bd2ed4
  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