diff options
author | Sakthipriyan Vairamani (thefourtheye) <thechargingvolcano@gmail.com> | 2017-02-05 20:15:37 +0530 |
---|---|---|
committer | Sakthipriyan Vairamani (thefourtheye) <thechargingvolcano@gmail.com> | 2017-04-04 13:10:51 +0530 |
commit | d51f4f31be2c36f5fb8a8ca8e17597178313d1ae (patch) | |
tree | 2330f9f14531deaf203e7e912e4edf451362c2f8 /test/sequential/test-buffer-creation-regression.js | |
parent | ba0e3ac53d7edf5caab606417201ce28317eaefb (diff) | |
download | android-node-v8-d51f4f31be2c36f5fb8a8ca8e17597178313d1ae.tar.gz android-node-v8-d51f4f31be2c36f5fb8a8ca8e17597178313d1ae.tar.bz2 android-node-v8-d51f4f31be2c36f5fb8a8ca8e17597178313d1ae.zip |
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>
Diffstat (limited to 'test/sequential/test-buffer-creation-regression.js')
-rw-r--r-- | test/sequential/test-buffer-creation-regression.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/sequential/test-buffer-creation-regression.js b/test/sequential/test-buffer-creation-regression.js index b5c8450e03..8137e4830a 100644 --- a/test/sequential/test-buffer-creation-regression.js +++ b/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 { |