mirror of
https://github.com/nodejs/node.git
synced 2026-11-26 21:58:26 -05:00
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:
1 parent
ae9f58cbdd
commit
0c6fdfc4ac
1 file changed
+1
-1
@@ -784,7 +784,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);
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user