Uh oh!
There was an error while loading. Please reload this page.
added template for better error explanation to assert.ok error message - #16829
added template for better error explanation to assert.ok error message#16829chrbergert wants to merge 5 commits into
Conversation
| const ret = spawnSync(process.execPath, args, { maxBuffer: 1 }); | ||
| assert.ok(ret.error, 'maxBuffer should error'); | ||
| assert.ok(ret.error, `instead of an error there is ${ret.error}` ); |
There was a problem hiding this comment.
Since ret is returned by spawnSync, ret.error can only be either an Error or undefined, so if it fails this would always be "instead of an error there is undefined", which does not seem very helpful... I think changing the message to child process does not error when maxBuffer is set to 1 would be easier to understand.
…ned: "child process does not error when maxBuffer is set to 1"
gireeshpunathil
commented
Nov 7, 2017
| assert.ok(ret.error, 'maxBuffer should error'); | ||
| assert.ok(ret.error, 'child process does not error \ | ||
| when maxBuffer is set to 1'); |
There was a problem hiding this comment.
this your last commit introduced non-standard indentations. Please will you correct it? The previous commit was fair enough, dont know why you pushed again
There was a problem hiding this comment.
thanks for the review. Sorry, that I have to change it again. I only wanted to fix the error that the linter was throwing, where i exceeded the maximum line length of 80.
gireeshpunathil
commented
Nov 7, 2017
Now that you pushed a commit while the CI was running (which would have picked up the older / newer commit depending on the timing of the push), the CI result is going to be inconclusive ping @Trott to confirm if that is the case. |
Trott
commented
Nov 7, 2017
Hi @chrbergert! Thanks for the PR and welcome. A few things:
So, a few things:
assert.ok(ret.error,'child process does not error when maxBuffer is set to 1');I think I'd prefer this: assert.ok(ret.error,'error expected when maxBuffer is set to 1');
// This test checks that the maxBuffer option for child_process.spawnSync()// works as expected. |
Trott
left a comment
There was a problem hiding this comment.
requesting changes in comment above
- removed comment that wasn't relevant/important - added comment that explains what the test does
chrbergert
commented
Nov 7, 2017
Hi together, first of all, thanks for all the input and the warm welcome.
Before I ran lint-js locally and experimented a bit with it. Think I got the process for this, finally. So, hope it goes through now and thanks again helping me doing my first contribution to this awesome project. |
Trott
left a comment
There was a problem hiding this comment.
(When landing, we'll need to be careful to make sure the commit message accurately reflects the change.)
Trott
commented
Nov 12, 2017
Trott
commented
Nov 13, 2017
CI was good except for Raspberry Pi devices which have (had?) been having build problems. Let's try again: https://ci.nodejs.org/job/node-test-commit-arm-fanned/12541/ |
Trott
commented
Nov 13, 2017
Landed in 21a7459. |
* remove comment that isn't relevant/important * add comment that explains what the test does PR-URL: nodejs#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>
* remove comment that isn't relevant/important * add comment that explains what the test does PR-URL: #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>
* remove comment that isn't relevant/important * add comment that explains what the test does PR-URL: #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>
* remove comment that isn't relevant/important * add comment that explains what the test does PR-URL: #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>
* remove comment that isn't relevant/important * add comment that explains what the test does PR-URL: #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>
* remove comment that isn't relevant/important * add comment that explains what the test does PR-URL: #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>
Checklist
make -j4 test(UNIX), orvcbuild test(Windows) passesAffected core subsystem(s)