Skip to content

Commit

Permalink
remove upper bound for number of worker threads
Browse files Browse the repository at this point in the history
  • Loading branch information
gravityvi committed Oct 11, 2023
1 parent 173d8c6 commit eaead4d
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions lib/runner/concurrency/index.js
Expand Up @@ -362,12 +362,7 @@ class Concurrency extends EventEmitter {
let workers = require('os').cpus().length;

if (isObject(test_workers) && isNumber(test_workers.workers)) {
if (workers < test_workers.workers) {
// eslint-disable-next-line no-console
Logger.warn(`Number of max workers is set to ${test_workers.workers} while the number of cpu cores is ${workers}. This can cause performance issues...\n`);
} else {
workers = test_workers.workers;
}
workers = test_workers.workers;
}

return workers;
Expand Down

0 comments on commit eaead4d

Please sign in to comment.