diff --git a/test/common/README.md b/test/common/README.md index d43b0ebbff39af..5479a39d8c215c 100644 --- a/test/common/README.md +++ b/test/common/README.md @@ -68,6 +68,13 @@ sure no unexpected rejections occur, because currently they result in silent failures. However, it is useful in some rare cases to disable it, for example if the `unhandledRejection` hook is directly used by the test. +### `enoughTestCpu` + +* [<boolean>][] + +Indicates if there is more than 1 CPU or that the single CPU has a speed of at +least 1 GHz. + ### `enoughTestMem` * [<boolean>][] diff --git a/test/common/index.js b/test/common/index.js index 2e2d14dc0e6d43..1e66e32c9c1260 100644 --- a/test/common/index.js +++ b/test/common/index.js @@ -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); },