Browse Source

test: reduce buffer size in buffer-creation test

This test is allocating much more memory than necessary to actually
reproduce the original problem. Lowering the amount of memory allocated
increases performance at least in some cases and makes this test less
likely to time out on SmartOS.

PR-URL: https://github.com/nodejs/node/pull/11177
Ref: https://github.com/nodejs/node/issues/10166

Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Julien Gilli <jgilli@nodejs.org>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
v6
Sakthipriyan Vairamani (thefourtheye) 8 years ago
parent
commit
d51f4f31be
No known key found for this signature in database GPG Key ID: C71F2437E9591758
  1. 4
      test/sequential/test-buffer-creation-regression.js

4
test/sequential/test-buffer-creation-regression.js

@ -20,9 +20,9 @@ const acceptableOOMErrors = [
'Invalid array buffer length'
];
const size = 8589934592; /* 1 << 33 */
const offset = 4294967296; /* 1 << 32 */
const length = 1000;
const offset = 4294967296; /* 1 << 32 */
const size = offset + length;
let arrayBuffer;
try {

Loading…
Cancel
Save