summaryrefslogtreecommitdiff
path: root/test/parallel/test-async-wrap-pop-id-during-load.js
diff options
context:
space:
mode:
authorkohta ito <kohta110@gmail.com>2018-09-23 03:11:21 +0900
committerSam Roberts <vieuxtech@gmail.com>2019-04-09 13:57:04 -0700
commiteb8a51a35c961fe36ec78ccb4a176e7091408ba1 (patch)
tree2ec97de24f33e81ecd2c40e18e3304a721a6af4f /test/parallel/test-async-wrap-pop-id-during-load.js
parent1656cd2edbf566acd1c1efc299bd712df59e2847 (diff)
downloadandroid-node-v8-eb8a51a35c961fe36ec78ccb4a176e7091408ba1.tar.gz
android-node-v8-eb8a51a35c961fe36ec78ccb4a176e7091408ba1.tar.bz2
android-node-v8-eb8a51a35c961fe36ec78ccb4a176e7091408ba1.zip
child_process: use non-infinite maxBuffer defaults
Set the default maxBuffer size to 204,800 bytes for execSync, execFileSync, and spawnSync. APIs that return the child output as a string should have non-infinite defaults for maxBuffer sizes to avoid out-of-memory error conditions. A non-infinite default used to be the documented behaviour for all relevant APIs, but the implemented behaviour for execSync, execFileSync and spawnSync was to have no maxBuffer limits. PR-URL: https://github.com/nodejs/node/pull/23027 Refs: https://github.com/nodejs/node/pull/22894 Reviewed-By: Sam Roberts <vieuxtech@gmail.com> Reviewed-By: Michaƫl Zasso <targos@protonmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Diffstat (limited to 'test/parallel/test-async-wrap-pop-id-during-load.js')
-rw-r--r--test/parallel/test-async-wrap-pop-id-during-load.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/parallel/test-async-wrap-pop-id-during-load.js b/test/parallel/test-async-wrap-pop-id-during-load.js
index cff7e85fdf..1ab9810479 100644
--- a/test/parallel/test-async-wrap-pop-id-during-load.js
+++ b/test/parallel/test-async-wrap-pop-id-during-load.js
@@ -16,7 +16,8 @@ const { spawnSync } = require('child_process');
const ret = spawnSync(
process.execPath,
- ['--stack_size=150', __filename, 'async']
+ ['--stack_size=150', __filename, 'async'],
+ { maxBuffer: Infinity }
);
assert.strictEqual(ret.status, 0,
`EXIT CODE: ${ret.status}, STDERR:\n${ret.stderr}`);