-
Notifications
You must be signed in to change notification settings - Fork 29.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test : refactor parallel/test-tls-cert-chains-concat #19096
test : refactor parallel/test-tls-cert-chains-concat #19096
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 😄. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@BridgeAR I see your concerns, but I don’t really see a downside of having these checks here… I guess it’s a bit of churn, but I’d say we’ve done worse things in the past when it comes to that
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