test: refactor test-http-response-splitting#11429
test: refactor test-http-response-splitting#11429notarseniy wants to merge 1 commit intonodejs:masterfrom
Conversation
There was a problem hiding this comment.
This should actually be updated to test the actual error message
There was a problem hiding this comment.
thank you! implemented.
e84501e to
42dbf60
Compare
|
Thanks for review :-) Recommited with error message checking and with new commit message. |
There was a problem hiding this comment.
Can you add ^ and $ to the regular expression. You can also use a regex literal instead of the RegExp() constructor.
There was a problem hiding this comment.
Yeah, seems better. Thank you for pointing this out! Fixed.
308738e to
a84c506
Compare
|
Re-forcepushed again with fixes. Feel free to commenting anything more :) |
cjihrig
left a comment
There was a problem hiding this comment.
LGTM. Only comment is that it might look a little cleaner to drop errRegExp, and just put the regex inline.
* move repeated code to function * remove unneeded `common.mustCall()` usage with function arguments that are not callbacks * add error message checking
a84c506 to
fc16912
Compare
|
Why test on armv8-ubuntu1404 is break down? This test is passed, but there's hudson-related issue (unrelated to this PR): |
Probably related to nodejs/build#611 |
* move repeated code to function * remove unneeded `common.mustCall()` usage with function arguments that are not callbacks * add error message checking PR-URL: #11429 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Сковорода Никита Андреевич <[email protected]>
|
Landed in 6647688 |
* move repeated code to function * remove unneeded `common.mustCall()` usage with function arguments that are not callbacks * add error message checking PR-URL: #11429 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Сковорода Никита Андреевич <[email protected]>
* move repeated code to function * remove unneeded `common.mustCall()` usage with function arguments that are not callbacks * add error message checking PR-URL: #11429 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Сковорода Никита Андреевич <[email protected]>
* move repeated code to function * remove unneeded `common.mustCall()` usage with function arguments that are not callbacks * add error message checking PR-URL: #11429 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Сковорода Никита Андреевич <[email protected]>
* move repeated code to function * remove unneeded `common.mustCall()` usage with function arguments that are not callbacks * add error message checking PR-URL: #11429 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Сковорода Никита Андреевич <[email protected]>
* move repeated code to function * remove unneeded `common.mustCall()` usage with function arguments that are not callbacks * add error message checking PR-URL: #11429 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Сковорода Никита Андреевич <[email protected]>
common.mustCall()usage with function arguments thatare not callbacks
like #11274.
Checklist
make -j4 test(UNIX), orvcbuild test(Windows) passesAffected core subsystem(s)
test http