Skip to content

Commit

Permalink
test: remove unneeded flag check in test-vm-memleak
Browse files Browse the repository at this point in the history
The `common` module checks that necessary flags are being used, so a
check in the test itself is no longer necessary.

PR-URL: #34528
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
  • Loading branch information
Trott authored and codebytere committed Aug 5, 2020
1 parent 14656e1 commit 9c442f9
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions test/pummel/test-vm-memleak.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;');
Expand Down

0 comments on commit 9c442f9

Please sign in to comment.