Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChrBergert <christian.bergert@googlemail.com>2017-11-06 19:04:36 +0300
committerRich Trott <rtrott@gmail.com>2017-11-14 02:01:02 +0300
commit21a7459d490d832d5d547833d527083e460999e1 (patch)
tree9d5c797ce673d0aa1d912143a9de98dec15c9a4d
parent51f92b6fffa0927f7f5b22528db0facacf65faf8 (diff)
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>
-rw-r--r--test/parallel/test-child-process-spawnsync-maxbuf.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/parallel/test-child-process-spawnsync-maxbuf.js b/test/parallel/test-child-process-spawnsync-maxbuf.js
index 2d94c338bb7..022c090c338 100644
--- a/test/parallel/test-child-process-spawnsync-maxbuf.js
+++ b/test/parallel/test-child-process-spawnsync-maxbuf.js
@@ -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 = [