Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions test/parallel_testsuite.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@ def python_multiprocessing_structures_are_buggy():


def cap_max_workers_in_pool(max_workers, is_browser):
if is_browser:
if is_browser and 'EMTEST_CORES' not in os.environ and 'EMCC_CORES' not in os.environ:
# TODO experiment with this number. In browser tests we'll be creating
# a chrome instance per worker which is expensive.
max_workers = int(max_workers / 2)
max_workers = max_workers // 2
# Python has an issue that it can only use max 61 cores on Windows: https://github.com/python/cpython/issues/89240
if WINDOWS:
return min(max_workers, 61)
Expand Down