Skip to content

Commit

Permalink
Merge pull request grpc#6448 from nathanielmanistaatgoogle/issue-4899
Browse files Browse the repository at this point in the history
Raise parallelism in grpc._cython._channel_test
  • Loading branch information
jtattermusch committed May 9, 2016
2 parents 4f9c89a + 7809f2b commit 794834f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/python/grpcio/tests/unit/_cython/_channel_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,7 @@

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():
Expand All @@ -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:
Expand Down

0 comments on commit 794834f

Please sign in to comment.