test: refactor comments in test-child-process-spawnsync-maxbuf

* remove comment that isn't relevant/important
* add comment that explains what the test does

PR-URL: https://github.com/nodejs/node/pull/16829
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
ChrBergert 2017-11-06 16:04:36 +00:00 committed by Rich Trott
parent 51f92b6fff
commit 21a7459d49

View File

@ -1,10 +1,12 @@
'use strict';
require('../common');
// This test checks that the maxBuffer option for child_process.spawnSync()
// works as expected.
const assert = require('assert');
const spawnSync = require('child_process').spawnSync;
const msgOut = 'this is stdout';
// This is actually not os.EOL?
const msgOutBuf = Buffer.from(`${msgOut}\n`);
const args = [