aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/python/grpcio_tests/tests/unit/_cython/_cancel_many_calls_test.py
diff options
context:
space:
mode:
authorGravatar kpayson64 <kpayson@google.com>2016-09-19 15:44:48 -0700
committerGravatar GitHub <noreply@github.com>2016-09-19 15:44:48 -0700
commita6a6fa4f12c5634d87d8b4e64fa50c3618586a7c (patch)
tree6dee2ceb56bd179d8f7cfe89f8f0ba4aca13f30f /src/python/grpcio_tests/tests/unit/_cython/_cancel_many_calls_test.py
parent9fec58f2b4727aae4c9368f3768cc1ef727bd523 (diff)
parent63d8af2b0043ccbff04cf3f6bac0e58aba06f257 (diff)
Merge pull request #8137 from kpayson64/python_server_args
Add parameter for server options
Diffstat (limited to 'src/python/grpcio_tests/tests/unit/_cython/_cancel_many_calls_test.py')
-rw-r--r--src/python/grpcio_tests/tests/unit/_cython/_cancel_many_calls_test.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/python/grpcio_tests/tests/unit/_cython/_cancel_many_calls_test.py b/src/python/grpcio_tests/tests/unit/_cython/_cancel_many_calls_test.py
index cf212c5653..20115fb22c 100644
--- a/src/python/grpcio_tests/tests/unit/_cython/_cancel_many_calls_test.py
+++ b/src/python/grpcio_tests/tests/unit/_cython/_cancel_many_calls_test.py
@@ -157,11 +157,12 @@ class CancelManyCallsTest(unittest.TestCase):
server_thread_pool = logging_pool.pool(test_constants.THREAD_CONCURRENCY)
server_completion_queue = cygrpc.CompletionQueue()
- server = cygrpc.Server()
+ server = cygrpc.Server(cygrpc.ChannelArgs([]))
server.register_completion_queue(server_completion_queue)
port = server.add_http2_port(b'[::]:0')
server.start()
- channel = cygrpc.Channel('localhost:{}'.format(port).encode())
+ channel = cygrpc.Channel('localhost:{}'.format(port).encode(),
+ cygrpc.ChannelArgs([]))
state = _State()