test: fix test broken under --node-builtin-modules-path

PR-URL: https://github.com/nodejs/node/pull/45894
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Moshe Atlow <moshe@atlow.co.il>
This commit is contained in:
Geoffrey Booth authored and RafaelGSS committed 2023-01-05 13:11:33 -03:00
1 parent 353dab5bdf
commit 95ce16d8d9
1 file changed
+2
+2
View File
@@ -22,6 +22,8 @@ const after = process.memoryUsage.rss();
if (process.config.variables.asan) {
assert(after < before * 10, `asan: before=${before} after=${after}`);
} else if (process.config.variables.node_builtin_modules_path) {
assert(after < before * 4, `node_builtin_modules_path: before=${before} after=${after}`);
} else {
assert(after < before * 2, `before=${before} after=${after}`);
}