test: clean up net server try ports test#8458
Conversation
|
LGTM if green |
There was a problem hiding this comment.
Why not get rid of this variable too and wrap the 'error' event handler in a common.mustCall() instead? That will ensure it gets called exactly once.
e91f6c5 to
d2af1ef
Compare
|
@mscdex thanks for the advice |
|
LGTM |
|
LGTM if CI is still ok with it: https://ci.nodejs.org/job/node-test-pull-request/3988/ |
|
Looks like an unrelated failure ^ |
|
@tlhunter Yeah that can be ignored for this PR |
There was a problem hiding this comment.
I think removing both console.error could be a good idea.
|
LGTM with one suggestion |
d2af1ef to
a75f5c1
Compare
* Replace var's with const and let * Replace boolean flags with common.mustCall() * Using stricter comparisons * Fixed typo in comment
a75f5c1 to
7449831
Compare
|
@santigimeno |
|
LGTM. Thanks! |
|
One last CI because you never know: https://ci.nodejs.org/job/node-test-pull-request/3993/ |
|
CI errors are unrelated. CI looks good. |
|
LGTM |
|
Landed in 2d7fa3d. 🎉 |
* Replace var's with const and let * Replace boolean flags with common.mustCall() * Using stricter comparisons * Fixed typo in comment PR-URL: #8458 Reviewed-By: Myles Borins <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Brian White <[email protected]> Reviewed-By: Santiago Gimeno <[email protected]> Reviewed-By: James M Snell <[email protected]>
* Replace var's with const and let * Replace boolean flags with common.mustCall() * Using stricter comparisons * Fixed typo in comment PR-URL: #8458 Reviewed-By: Myles Borins <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Brian White <[email protected]> Reviewed-By: Santiago Gimeno <[email protected]> Reviewed-By: James M Snell <[email protected]>
* Replace var's with const and let * Replace boolean flags with common.mustCall() * Using stricter comparisons * Fixed typo in comment PR-URL: #8458 Reviewed-By: Myles Borins <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Brian White <[email protected]> Reviewed-By: Santiago Gimeno <[email protected]> Reviewed-By: James M Snell <[email protected]>
* Replace var's with const and let * Replace boolean flags with common.mustCall() * Using stricter comparisons * Fixed typo in comment PR-URL: #8458 Reviewed-By: Myles Borins <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Brian White <[email protected]> Reviewed-By: Santiago Gimeno <[email protected]> Reviewed-By: James M Snell <[email protected]>
Checklist
make -j4 test(UNIX)Affected core subsystem(s)
test
Description of change