aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/python/grpcio_tests/tests/unit/_channel_args_test.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/python/grpcio_tests/tests/unit/_channel_args_test.py')
-rw-r--r--src/python/grpcio_tests/tests/unit/_channel_args_test.py5
1 files changed, 4 insertions, 1 deletions
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 1a2d2c0117..869c2f4d2f 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 @@ 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__':