Skip to content

Commit

Permalink
fix(tests): make tes_thread_pool more deterministic (flaky on Travis)
Browse files Browse the repository at this point in the history
  • Loading branch information
user2589 committed Jan 25, 2019
1 parent ed6bd8c commit 74873b7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ cache:

install:
- make install
- pip install requests

script:
- make test
Expand Down
2 changes: 1 addition & 1 deletion test.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ def setUp(self):
# logging.basicConfig(level=logging.INFO)

def test_thread_pool(self):
tp = mapreduce.ThreadPool()
tp = mapreduce.ThreadPool(8)
results_dict = {}

def callback(res):
Expand Down

0 comments on commit 74873b7

Please sign in to comment.