Skip to content

Commit f605ba9

Browse files
committed
fixup! doc: fix default maxBuffer size
1 parent 34d937d commit f605ba9

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

test/parallel/test-child-process-exec-maxBuffer.js renamed to test/parallel/test-child-process-exec-maxbuf.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ function runChecks(err, stdio, streamName, expected) {
2323

2424
// default value
2525
{
26-
// eslint-disable-next-line max-len
27-
const cmd = `${process.execPath} -e "console.log('a'.repeat(200 * 1024 - 1))"`;
26+
const cmd =
27+
`${process.execPath} -e "console.log('a'.repeat(200 * 1024 - 1))"`;
2828

2929
cp.exec(cmd, common.mustCall((err, stdout, stderr) => {
3030
assert.ifError(err);

test/parallel/test-child-process-execfile-maxBuffer.js renamed to test/parallel/test-child-process-execfile-maxbuf.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ function checkFactory(streamName) {
1515
{
1616
execFile(
1717
process.execPath,
18-
['-e', "console.log('a'.repeat(200 * 1024))"],
18+
['-e', `console.log('a'.repeat(200 * 1024))`],
1919
checkFactory('stdout')
2020
);
2121
}
@@ -24,7 +24,7 @@ function checkFactory(streamName) {
2424
{
2525
execFile(
2626
process.execPath,
27-
['-e', "console.log('a'.repeat(200 * 1024 - 1))"],
27+
['-e', `console.log('a'.repeat(200 * 1024 - 1))`],
2828
common.mustCall((err, stdout, stderr) => {
2929
assert.ifError(err);
3030
assert.strictEqual(stdout.trim(), 'a'.repeat(200 * 1024 - 1));
@@ -38,7 +38,7 @@ function checkFactory(streamName) {
3838

3939
execFile(
4040
process.execPath,
41-
['-e', "console.log('hello world');"],
41+
['-e', `console.log('hello world');`],
4242
options,
4343
common.mustCall((err, stdout, stderr) => {
4444
assert.ifError(err);
@@ -65,7 +65,7 @@ const unicode = '中文测试'; // length = 4, byte length = 12
6565
{
6666
execFile(
6767
process.execPath,
68-
['-e', `console.error('${unicode}');"`],
68+
['-e', `console.error('${unicode}');`],
6969
{ maxBuffer: 10 },
7070
checkFactory('stderr')
7171
);

0 commit comments

Comments
 (0)