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.

Backport-PR-URL: #49874
PR-URL: #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 authored and ruyadorno committed Sep 28, 2023
1 parent 355f10d commit be211ef
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 be211ef

Please sign in to comment.