termux-packages/packages/nodejs/test-sequential-test-gc-htt...

12 lines
417 B
Diff

--- ./test/sequential/test-gc-http-client-onerror.js.orig 2022-06-05 10:18:02.427598802 +0530
+++ ./test/sequential/test-gc-http-client-onerror.js 2022-06-05 10:18:17.627598796 +0530
@@ -6,7 +6,7 @@
const common = require('../common');
const onGC = require('../common/ongc');
-const cpus = require('os').cpus().length;
+const cpus = require('os').numcpus();
function serverHandler(req, res) {
req.resume();