summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAnna Henningsen <anna@addaleax.net>2019-02-19 14:25:03 +0100
committerAnna Henningsen <anna@addaleax.net>2019-02-21 15:39:18 +0100
commit83e1b9744317496b2a3b257bbf87e241496dd5ab (patch)
tree1751aa29fe86b58450d0cd3e9d0c260654d9f321 /test
parente51da1fcadc822fb514cd6b32e932d7c0c3239a7 (diff)
downloadandroid-node-v8-83e1b9744317496b2a3b257bbf87e241496dd5ab.tar.gz
android-node-v8-83e1b9744317496b2a3b257bbf87e241496dd5ab.tar.bz2
android-node-v8-83e1b9744317496b2a3b257bbf87e241496dd5ab.zip
http2: shrink memory to match read data
Perform a shrinking `Realloc()` so that less data is used for HTTP2 reads. PR-URL: https://github.com/nodejs/node/pull/26201 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Diffstat (limited to 'test')
-rw-r--r--test/sequential/test-http2-max-session-memory.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/sequential/test-http2-max-session-memory.js b/test/sequential/test-http2-max-session-memory.js
index 644a20a3c8..f770ee1139 100644
--- a/test/sequential/test-http2-max-session-memory.js
+++ b/test/sequential/test-http2-max-session-memory.js
@@ -8,7 +8,7 @@ const http2 = require('http2');
// Test that maxSessionMemory Caps work
-const largeBuffer = Buffer.alloc(1e6);
+const largeBuffer = Buffer.alloc(2e6);
const server = http2.createServer({ maxSessionMemory: 1 });