node/test/fixtures/report-oom.js
Joyee Cheung 04c4688da5 test: split report OOM tests
On some machines the report OOM tests can take too long to complete,
resulting in a timeout. This splits the test into several different
smaller tests to reduce the flakiness of it.

PR-URL: https://github.com/nodejs/node/pull/44389
Refs: https://github.com/nodejs/reliability/issues/356
Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
2022-08-29 11:39:15 +08:00

14 lines
193 B
JavaScript

'use strict';
const list = [];
while (true) {
const record = new MyRecord();
list.push(record);
}
function MyRecord() {
this.name = 'foo';
this.id = 128;
this.account = 98454324;
}