mirror of
https://github.com/nodejs/node.git
synced 2026-11-30 11:55:44 -05:00
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>
This commit is contained in:
1 parent
6ccbf38a4f
commit
b52b3f6710
1 file changed
+2
-2
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user