-
Notifications
You must be signed in to change notification settings - Fork 29.8k
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: add a test for Server. listen callback runtime binding #35657
Conversation
modified the file test-http-pause.js by replacing the function ()=>
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.
Hello 👋 Thanks for your work, and welcome to the Node.js repo.
I think using an anonymous function for this test was on purpose, because we want to make sure the callback is bind to the server
instance. By replacing it with an arrow function, this PR removes an important test.
What I suggest instead is to make the use of an anonymous function explicit with a comment and an equality check.
Updating the changes as requested above. Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
Updated the changes as requested. Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
Committed the changes as requested. Thanks for the information provided for the updates. |
This comment has been minimized.
This comment has been minimized.
Note to who ever merges this PR: the original commit message needs to change to reflect what this PR is now doing; maybe something like:
|
PR-URL: #35657 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
landed in 9ce5a03 . Thanks for the contribution! |
PR-URL: #35657 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
PR-URL: #35657 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passes