From 5e426511b1616a3a73216cc566a910e9574499ee Mon Sep 17 00:00:00 2001 From: Joyee Cheung Date: Sat, 23 Sep 2023 05:46:22 +0200 Subject: [PATCH] test: deflake test-vm-contextified-script-leak MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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: https://github.com/nodejs/node/pull/49710 Backport-PR-URL: https://github.com/nodejs/node/pull/51004 Refs: https://github.com/nodejs/reliability/issues/669 Reviewed-By: Franziska Hinkelmann Reviewed-By: Michaƫl Zasso Reviewed-By: Luigi Pinca Reviewed-By: Rich Trott --- test/es-module/test-vm-contextified-script-leak.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/es-module/test-vm-contextified-script-leak.js b/test/es-module/test-vm-contextified-script-leak.js index 60212dd4bbbf68..a8625fc94d246e 100644 --- a/test/es-module/test-vm-contextified-script-leak.js +++ b/test/es-module/test-vm-contextified-script-leak.js @@ -13,4 +13,4 @@ async function createContextifyScript() { async importModuleDynamically() {}, }); } -checkIfCollectable(createContextifyScript, 2048); +checkIfCollectable(createContextifyScript, 2048, 512);