diff --git a/test/parallel_testsuite.py b/test/parallel_testsuite.py index 20e113be96767..2413c26762591 100644 --- a/test/parallel_testsuite.py +++ b/test/parallel_testsuite.py @@ -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)