diff options
author | Rich Trott <rtrott@gmail.com> | 2015-11-16 21:42:47 -0800 |
---|---|---|
committer | James M Snell <jasnell@gmail.com> | 2015-11-18 07:58:17 -0800 |
commit | ac319c354719e02d6b9877f83227ffecabed477d (patch) | |
tree | e3c01ffa940cdf921dcbc36cb229d63fac3216b2 /test/parallel/test-child-process-spawnsync-input.js | |
parent | 72e3dd9f43c1d7ad1ea31db9a985901d902a9cfb (diff) | |
download | android-node-v8-ac319c354719e02d6b9877f83227ffecabed477d.tar.gz android-node-v8-ac319c354719e02d6b9877f83227ffecabed477d.tar.bz2 android-node-v8-ac319c354719e02d6b9877f83227ffecabed477d.zip |
test: fix flaky test-child-process-spawnsync-input
Move portion of `test-child-process-spawnsync-input.js` (that has been
flaky on CentOS in CI) to its own file. This allows us to more easily
eliminate the cause of the flakiness without affecting other unrelated
portions of the test.
Fixes: https://github.com/nodejs/node/issues/3863
PR-URL: https://github.com/nodejs/node/pull/3889
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'test/parallel/test-child-process-spawnsync-input.js')
-rw-r--r-- | test/parallel/test-child-process-spawnsync-input.js | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/test/parallel/test-child-process-spawnsync-input.js b/test/parallel/test-child-process-spawnsync-input.js index d978bd80bc..338b4277fb 100644 --- a/test/parallel/test-child-process-spawnsync-input.js +++ b/test/parallel/test-child-process-spawnsync-input.js @@ -87,15 +87,3 @@ ret = spawnSync(process.execPath, args, { encoding: 'utf8' }); checkSpawnSyncRet(ret); assert.strictEqual(ret.stdout, msgOut + '\n'); assert.strictEqual(ret.stderr, msgErr + '\n'); - -options = { - maxBuffer: 1 -}; - -ret = spawnSync(process.execPath, args, options); - -assert.ok(ret.error, 'maxBuffer should error'); -assert.strictEqual(ret.error.errno, 'ENOBUFS'); -// we can have buffers larger than maxBuffer because underneath we alloc 64k -// that matches our read sizes -assert.deepEqual(ret.stdout, msgOutBuf); |