From 199ac7d2c0f4978262181f26d762131e67996a0d Mon Sep 17 00:00:00 2001 From: Geoffrey Booth Date: Fri, 16 Dec 2022 14:07:47 -0800 Subject: [PATCH] test: fix test broken under --node-builtin-modules-path --- test/parallel/test-v8-serialize-leak.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/parallel/test-v8-serialize-leak.js b/test/parallel/test-v8-serialize-leak.js index a90c398adcdaf3..696dbfea65ba95 100644 --- a/test/parallel/test-v8-serialize-leak.js +++ b/test/parallel/test-v8-serialize-leak.js @@ -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}`); }