mirror of
https://github.com/nodejs/node.git
synced 2026-10-14 10:26:26 -04:00
test: remove common.enoughTestCpu
All hosts in CI return true for common.enoughTestCpu. At least for our CI, it is always true, so we can remove it. PR-URL: https://github.com/nodejs/node/pull/39161 Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
This commit is contained in:
1 parent
7868062ddb
commit
32b6f4be53
9 files changed
-33
No files matched your search
@@ -62,13 +62,6 @@ On non-Windows platforms, this always returns `true`.
|
||||
|
||||
Creates a 10 MB file of all null characters.
|
||||
|
||||
### `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>][]
|
||||
|
||||
@@ -788,11 +788,6 @@ const common = {
|
||||
skipIfInspectorDisabled,
|
||||
skipIfWorker,
|
||||
|
||||
get enoughTestCpu() {
|
||||
const cpus = require('os').cpus();
|
||||
return Array.isArray(cpus) && (cpus.length > 1 || cpus[0].speed > 999);
|
||||
},
|
||||
|
||||
get enoughTestMem() {
|
||||
return require('os').totalmem() > 0x70000000; /* 1.75 Gb */
|
||||
},
|
||||
|
||||
@@ -18,7 +18,6 @@ const {
|
||||
isLinux,
|
||||
isOSX,
|
||||
enoughTestMem,
|
||||
enoughTestCpu,
|
||||
buildType,
|
||||
localIPv6Hosts,
|
||||
opensslCli,
|
||||
@@ -64,7 +63,6 @@ export {
|
||||
isLinux,
|
||||
isOSX,
|
||||
enoughTestMem,
|
||||
enoughTestCpu,
|
||||
buildType,
|
||||
localIPv6Hosts,
|
||||
opensslCli,
|
||||
|
||||
@@ -9,10 +9,6 @@ if (!common.isLinux) {
|
||||
common.skip('The fs watch limit is OS-dependent');
|
||||
}
|
||||
|
||||
if (!common.enoughTestCpu) {
|
||||
common.skip('This test is resource-intensive');
|
||||
}
|
||||
|
||||
if ((process.config.variables.arm_version === '6') ||
|
||||
(process.config.variables.arm_version === '7')) {
|
||||
common.skip('Too slow for armv6 and armv7 bots');
|
||||
|
||||
@@ -2,9 +2,6 @@
|
||||
const common = require('../common');
|
||||
const { isCPPSymbolsNotMapped } = require('./util');
|
||||
|
||||
if (!common.enoughTestCpu)
|
||||
common.skip('test is CPU-intensive');
|
||||
|
||||
if (isCPPSymbolsNotMapped) {
|
||||
common.skip('C++ symbols are not mapped for this os.');
|
||||
}
|
||||
|
||||
@@ -2,9 +2,6 @@
|
||||
const common = require('../common');
|
||||
const { isCPPSymbolsNotMapped } = require('./util');
|
||||
|
||||
if (!common.enoughTestCpu)
|
||||
common.skip('test is CPU-intensive');
|
||||
|
||||
if (isCPPSymbolsNotMapped) {
|
||||
common.skip('C++ symbols are not mapped for this os.');
|
||||
}
|
||||
|
||||
@@ -4,9 +4,6 @@ const { isCPPSymbolsNotMapped } = require('./util');
|
||||
const tmpdir = require('../common/tmpdir');
|
||||
tmpdir.refresh();
|
||||
|
||||
if (!common.enoughTestCpu)
|
||||
common.skip('test is CPU-intensive');
|
||||
|
||||
if (isCPPSymbolsNotMapped) {
|
||||
common.skip('C++ symbols are not mapped for this OS.');
|
||||
}
|
||||
|
||||
@@ -2,9 +2,6 @@
|
||||
const common = require('../common');
|
||||
const { isCPPSymbolsNotMapped } = require('./util');
|
||||
|
||||
if (!common.enoughTestCpu)
|
||||
common.skip('test is CPU-intensive');
|
||||
|
||||
if (isCPPSymbolsNotMapped) {
|
||||
common.skip('C++ symbols are not mapped for this os.');
|
||||
}
|
||||
|
||||
@@ -9,9 +9,6 @@ const common = require('../common');
|
||||
if (common.isAIX)
|
||||
common.skip('AIX address range too big for scripts.');
|
||||
|
||||
if (!common.enoughTestCpu)
|
||||
common.skip('test is CPU-intensive');
|
||||
|
||||
const base = require('./tick-processor-base.js');
|
||||
|
||||
// Unknown checked for to prevent flakiness, if pattern is not found,
|
||||
|
||||
Reference in new issue
Block a user