test: fix typo in common/index.js
All tests using enoughTestCpu checks are always having the checks come back false due to a typo in common/index.js. Fix the typo. PR-URL: https://github.com/nodejs/node/pull/31931 Reviewed-By: Denys Otrishko <shishugi@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net>
This commit is contained in:
parent
54eb7e6103
commit
fc68bf22a9
@ -717,7 +717,7 @@ module.exports = {
|
||||
skipIfReportDisabled,
|
||||
skipIfWorker,
|
||||
|
||||
get enoughTestCPU() {
|
||||
get enoughTestCpu() {
|
||||
const cpus = require('os').cpus();
|
||||
return Array.isArray(cpus) && (cpus.length > 1 || cpus[0].speed > 999);
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user