diff options
author | 2016-05-09 16:02:10 -0700 | |
---|---|---|
committer | 2016-05-09 16:02:10 -0700 | |
commit | 794834f56eba1c8748820d0716ce7177b1b04b6c (patch) | |
tree | 6e322e1d77f786f2fed92234051afd6387ea8de1 /src/python/grpcio/tests | |
parent | 4f9c89a5ce6ccc5a3f9fd21f6bdf13dba4ac7d7f (diff) | |
parent | 7809f2b78a5abf3ecb2ade16f3be907388c559e8 (diff) |
Merge pull request #6448 from nathanielmanistaatgoogle/issue-4899
Raise parallelism in grpc._cython._channel_test
Diffstat (limited to 'src/python/grpcio/tests')
-rw-r--r-- | src/python/grpcio/tests/unit/_cython/_channel_test.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/python/grpcio/tests/unit/_cython/_channel_test.py b/src/python/grpcio/tests/unit/_cython/_channel_test.py index b414f8e6f6..931cd9083e 100644 --- a/src/python/grpcio/tests/unit/_cython/_channel_test.py +++ b/src/python/grpcio/tests/unit/_cython/_channel_test.py @@ -33,8 +33,7 @@ import unittest from grpc._cython import cygrpc -# TODO(nathaniel): This should be at least one hundred. Why not one thousand? -_PARALLELISM = 4 +from tests.unit.framework.common import test_constants def _channel_and_completion_queue(): @@ -61,7 +60,7 @@ def _create_loop_destroy(): def _in_parallel(behavior, arguments): threads = tuple( threading.Thread(target=behavior, args=arguments) - for _ in range(_PARALLELISM)) + for _ in range(test_constants.PARALLELISM)) for thread in threads: thread.start() for thread in threads: |