Skip to content

Commit 7cb6fef

Browse files
GeoffreyBoothjuanarbol
authored andcommitted
test: fix test broken under --node-builtin-modules-path
PR-URL: #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>
1 parent 3bef8bc commit 7cb6fef

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/parallel/test-v8-serialize-leak.js

+2
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ const after = process.memoryUsage.rss();
2222

2323
if (process.config.variables.asan) {
2424
assert(after < before * 10, `asan: before=${before} after=${after}`);
25+
} else if (process.config.variables.node_builtin_modules_path) {
26+
assert(after < before * 4, `node_builtin_modules_path: before=${before} after=${after}`);
2527
} else {
2628
assert(after < before * 2, `before=${before} after=${after}`);
2729
}

0 commit comments

Comments
 (0)