mirror of
https://github.com/nodejs/node.git
synced 2024-11-21 21:19:50 +01:00
04c4688da5
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>
14 lines
193 B
JavaScript
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;
|
|
}
|