Skip to content

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
hyj1991 committed Dec 31, 2023
1 parent b7d0fe8 commit b59c980
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion test/fixtures/scripts/rss.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ function tick() {
if (i < 10000 && rss < 2 * 1024) {
setImmediate(tick);
} else {
process.send(rssMap)
process.send(rssMap);
}
}

Expand Down
4 changes: 1 addition & 3 deletions test/mallopt.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ const logdir = utils.createLogDir('logdir_mallopt');
const rssPath = path.join(__dirname, 'fixtures/scripts/rss.js');

(os.platform() === 'linux' ? describe : describe.skip)('avoid rss leak by mallopt', function () {
let pid;
let rssMap;
let exitInfo = { code: null, signal: null };
before(async function () {
Expand All @@ -23,7 +22,6 @@ const rssPath = path.join(__dirname, 'fixtures/scripts/rss.js');
XPROFILER_ENABLE_AVOID_RSS_LEAK: 'YES',
})
});
pid = p.pid;
p.on('message', msg => rssMap = msg);
exitInfo = await utils.getChildProcessExitInfo(p);
});
Expand All @@ -38,7 +36,7 @@ const rssPath = path.join(__dirname, 'fixtures/scripts/rss.js');
});

it('should avoid rss leak', function () {
console.log(`process rss map: ${JSON.stringify(rssMap)}`)
console.log(`process rss map: ${JSON.stringify(rssMap)}`);
const threshold = 200;
const list = Object.keys(rssMap).map(key => ({
key,
Expand Down

0 comments on commit b59c980

Please sign in to comment.