Ensure thread_pool is not None for grpc.Server
diff --git a/src/python/grpcio_tests/tests/unit/_channel_args_test.py b/src/python/grpcio_tests/tests/unit/_channel_args_test.py
index 1a2d2c0..869c2f4 100644
--- a/src/python/grpcio_tests/tests/unit/_channel_args_test.py
+++ b/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 @@
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__':