-
-
Notifications
You must be signed in to change notification settings - Fork 34.2k
Closed
Labels
reportIssues and PRs related to process.report.Issues and PRs related to process.report.testIssues and PRs related to the tests.Issues and PRs related to the tests.
Description
AssertionError [ERR_ASSERTION]: The expression evaluated to a falsy value:
assert(cpus.some((c) => {
console.log(c.speed, cpu.speed)
return c.model === cpu.model && c.speed === cpu.speed;
}))
at /usr/local/google/home/yangguo/node/test/common/report.js:111:5
at Array.forEach (<anonymous>)
at _validateContent (/usr/local/google/home/yangguo/node/test/common/report.js:103:15)
at validateContent (/usr/local/google/home/yangguo/node/test/common/report.js:40:5)
at Object.validate (/usr/local/google/home/yangguo/node/test/common/report.js:27:3)
at ChildProcess.<anonymous> (/usr/local/google/home/yangguo/node/test/report/test-report-fatal-error.js:36:12)
at ChildProcess.<anonymous> (/usr/local/google/home/yangguo/node/test/common/index.js:371:15)
at ChildProcess.emit (events.js:203:13)
at Process.ChildProcess._handle.onexit (internal/child_process.js:272:12)
The reason is simple: when the CPU governor is enabled, the clock speed is variable. The expected speed comes from require('os').cpus(), which may have a different speed than when the report was collected.
Metadata
Metadata
Assignees
Labels
reportIssues and PRs related to process.report.Issues and PRs related to process.report.testIssues and PRs related to the tests.Issues and PRs related to the tests.