Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fixup! test: split report OOM tests
  • Loading branch information
joyeecheung committed Aug 25, 2022
commit 8bf17a0a31f5f9bfefa959bf84dad018423aa5cb
2 changes: 1 addition & 1 deletion test/report/test-report-fatalerror-oomerror-compact.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const fixtures = require('../common/fixtures');
// Common args that will cause an out-of-memory error for child process.
const ARGS = [
'--max-old-space-size=20',
fixtures.path('report-oom')
fixtures.path('report-oom'),
];

{
Expand Down
2 changes: 1 addition & 1 deletion test/report/test-report-fatalerror-oomerror-directory.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const fixtures = require('../common/fixtures');
// Common args that will cause an out-of-memory error for child process.
const ARGS = [
'--max-old-space-size=20',
fixtures.path('report-oom')
fixtures.path('report-oom'),
];

{
Expand Down
3 changes: 1 addition & 2 deletions test/report/test-report-fatalerror-oomerror-filename.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

require('../common');
const assert = require('assert');
const fs = require('fs');
const helper = require('../common/report.js');
const spawnSync = require('child_process').spawnSync;
const tmpdir = require('../common/tmpdir');
Expand All @@ -13,7 +12,7 @@ const fixtures = require('../common/fixtures');
// Common args that will cause an out-of-memory error for child process.
const ARGS = [
'--max-old-space-size=20',
fixtures.path('report-oom')
fixtures.path('report-oom'),
];

{
Expand Down
4 changes: 2 additions & 2 deletions test/report/test-report-fatalerror-oomerror-not-set.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

require('../common');
const assert = require('assert');
const fs = require('fs');
const helper = require('../common/report.js');
const spawnSync = require('child_process').spawnSync;
const tmpdir = require('../common/tmpdir');
Expand All @@ -13,10 +12,11 @@ const fixtures = require('../common/fixtures');
// Common args that will cause an out-of-memory error for child process.
const ARGS = [
'--max-old-space-size=20',
fixtures.path('report-oom')
fixtures.path('report-oom'),
];

{
tmpdir.refresh();
// Verify that --report-on-fatalerror is respected when not set.
const args = ARGS;
const child = spawnSync(process.execPath, args, { cwd: tmpdir.path });
Expand Down
3 changes: 1 addition & 2 deletions test/report/test-report-fatalerror-oomerror-set.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

require('../common');
const assert = require('assert');
const fs = require('fs');
const helper = require('../common/report.js');
const spawnSync = require('child_process').spawnSync;
const tmpdir = require('../common/tmpdir');
Expand All @@ -13,7 +12,7 @@ const fixtures = require('../common/fixtures');
// Common args that will cause an out-of-memory error for child process.
const ARGS = [
'--max-old-space-size=20',
fixtures.path('report-oom')
fixtures.path('report-oom'),
];

{
Expand Down