Skip to content

Commit

Permalink
test: deflake test-vm-contextified-script-leak
Browse files Browse the repository at this point in the history
Similar to the test-vm-source-text-module-leak fix, use a snapshot
to force a thorough GC in order to prevent false positives.

PR-URL: nodejs#49710
Refs: nodejs/reliability#669
Reviewed-By: Franziska Hinkelmann <[email protected]>
Reviewed-By: Michaël Zasso <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Rich Trott <[email protected]>
  • Loading branch information
joyeecheung committed Dec 1, 2023
1 parent 466c304 commit fc003be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/es-module/test-vm-contextified-script-leak.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ async function createContextifyScript() {
async importModuleDynamically() {},
});
}
checkIfCollectable(createContextifyScript, 2048);
checkIfCollectable(createContextifyScript, 2048, 512);

0 comments on commit fc003be

Please sign in to comment.