Skip to content
Snippets Groups Projects
Commit 794834f5 authored by Jan Tattermusch's avatar Jan Tattermusch
Browse files

Merge pull request #6448 from nathanielmanistaatgoogle/issue-4899

Raise parallelism in grpc._cython._channel_test
parents 4f9c89a5 7809f2b7
No related branches found
No related tags found
No related merge requests found
......@@ -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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment