Skip to content

Commit 3658bb0

Browse files
committed
avoid asserting near-heap-limit exit mode
1 parent fd2cbc5 commit 3658bb0

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

test/pummel/test-heap-profile-near-heap-limit-with-heap-prof.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const fixtures = require('../common/fixtures');
1313
const fs = require('fs');
1414

1515
tmpdir.refresh();
16-
const child = spawnSync(process.execPath, [
16+
spawnSync(process.execPath, [
1717
'--max-old-space-size=50',
1818
'--heap-prof',
1919
`--heap-prof-dir=${tmpdir.path}`,
@@ -23,9 +23,6 @@ const child = spawnSync(process.execPath, [
2323
cwd: tmpdir.path,
2424
});
2525

26-
assert(common.nodeProcessAborted(child.status, child.signal),
27-
'process should have aborted, but did not');
28-
2926
const profiles = fs.readdirSync(tmpdir.path)
3027
.filter((file) => file.endsWith('.heapprofile'));
3128
assert.strictEqual(profiles.length, 1);

0 commit comments

Comments
 (0)