Skip to content

Commit 5e42651

Browse files
joyeecheungrichardlau
authored andcommittedMar 15, 2024
test: deflake test-vm-contextified-script-leak
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: #49710 Backport-PR-URL: #51004 Refs: nodejs/reliability#669 Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
1 parent 0b156c6 commit 5e42651

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎test/es-module/test-vm-contextified-script-leak.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ async function createContextifyScript() {
1313
async importModuleDynamically() {},
1414
});
1515
}
16-
checkIfCollectable(createContextifyScript, 2048);
16+
checkIfCollectable(createContextifyScript, 2048, 512);

0 commit comments

Comments
 (0)
Please sign in to comment.