Skip to content

Commit af713e4

Browse files
committed
squash! process: add threadCpuUsage
fixup
1 parent 9fcc325 commit af713e4

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

test/parallel/test-process-threadCpuUsage-worker-threads.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,10 @@ function performLoad() {
3131
}
3232

3333
function getUsages() {
34-
return { threadId, process: process.cpuUsage(), thread: process.threadCpuUsage() };
34+
return { process: process.cpuUsage(), thread: process.threadCpuUsage() };
3535
}
3636

3737
function validateResults(results) {
38-
for (let i = 0; i < 4; i++) {
39-
deepStrictEqual(results[i].threadId, i);
40-
}
41-
4238
// This test should have checked that the CPU usage of each thread is greater
4339
// than the previous one, while the process one was not.
4440
// Unfortunately, the real values are not really predictable on the CI so we

0 commit comments

Comments
 (0)