test : refactor parallel/test-tls-cert-chains-concat#19096
test : refactor parallel/test-tls-cert-chains-concat#19096juggernaut451 wants to merge 1 commit intonodejs:masterfrom
Conversation
|
@juggernaut451 thanks a lot for your contribution. I personally feel like it is not really the right direction though to always add common.mustCall. @nodejs/collaborators do we actually want to add must calls everywhere? This is more of a general thing and has nothing to do with this specific PR. |
IMO we do for callbacks otherwise the tests could pass if the callback was never called. |
|
@richardlau I do not agree on that point if the callback is from a heavily used main API. If it is a callback that is unique to the test itself it should be added. |
|
@BridgeAR I'd argue that it's a much simpler rule to apply everywhere rather than have to try to decide if an API is heavily used enough. If you do feel strongly about this I suggest raising a separate issue for discussion so that we don't clog up this PR 😄. |
|
No comment on this particular change, but in general: I'd prefer we be judicious in our use of |
added common.mustCall and replaced function with arrow function Fixes : nodejs#14544
a4c34f5 to
8a11196
Compare
|
Resolved :) |
|
Landed in cbc7eb7 🎉 |
Added common.mustCall and replaced function with arrow function. PR-URL: nodejs#19096 Fixes: nodejs#14544 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
Added common.mustCall and replaced function with arrow function. PR-URL: #19096 Fixes: #14544 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
added common.mustCall and replaced the function with arrow function
Fixes : #14544
Checklist
make -j4 test(UNIX), orvcbuild test(Windows) passesAffected core subsystem(s)
test