From 9c442f9786f3c5a50d022b3f11ae6caf17163677 Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Sun, 26 Jul 2020 22:53:53 -0700 Subject: [PATCH] test: remove unneeded flag check in test-vm-memleak The `common` module checks that necessary flags are being used, so a check in the test itself is no longer necessary. PR-URL: https://github.com/nodejs/node/pull/34528 Reviewed-By: Ruben Bridgewater Reviewed-By: Luigi Pinca --- test/pummel/test-vm-memleak.js | 5 ----- 1 file changed, 5 deletions(-) diff --git a/test/pummel/test-vm-memleak.js b/test/pummel/test-vm-memleak.js index 94e4055a767096..33f2f3d75905a5 100644 --- a/test/pummel/test-vm-memleak.js +++ b/test/pummel/test-vm-memleak.js @@ -29,11 +29,6 @@ const vm = require('vm'); const start = Date.now(); let maxMem = 0; -const ok = process.execArgv.some(function(arg) { - return arg === '--max_old_space_size=32'; -}); -assert(ok, 'Run this test with --max_old_space_size=32.'); - const interval = setInterval(function() { try { vm.runInNewContext('throw 1;');