-
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: check error type in net.Server.listen() callback and avoid setTimeout() in test #1821
Conversation
}); | ||
|
||
|
||
server1.listen(common.PORT, function() { | ||
console.error('server1 listening'); | ||
server1listening = true; | ||
|
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.
could you please remove this whitespace change?
Besides the little whitespace nitpicks, this LGTM. Thanks for the PR 😄 it reduces runtime of this test by about a tenth of a second, too. |
Not a review but can you reword the commit log so it conforms to the guidelines from CONTRIBUTING.md? |
This change eliminates an unnecessary setTimeout() in the test.
Pushed a new version of the commit that fixes the whitespace goofs identified by @brendanashworth and has a conforming commit message as pointed out by @bnoordhuis |
This change eliminates an unnecessary setTimeout() in the test. PR-URL: #1821 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Brendan Ashworth <brendan.ashworth@me.com>
Thanks Rich, landed in 8059393. |
This change eliminates an unnecessary setTimeout() in the test. PR-URL: nodejs/node#1821 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Brendan Ashworth <brendan.ashworth@me.com>
This implements a task from a
TODO
comment.ref: #264