-
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: cleanup/update test-dgram-empty-packet.js #8896
Conversation
|
||
client.bind(0, 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.
Nit: I would get rid of this line.
Nit: description says that |
@lpinca finally edited comment
Is this a usual way ore have u any suggestions? |
@Goyapa yes, that's fine, thank you! |
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
@@ -28,7 +29,6 @@ client.bind(0, function() { | |||
callback(); | |||
}); | |||
|
|||
const port = this.address().port; |
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.
IMHO this is best left here since it's declared right above the only place that it's used.
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.
@mscdex
changed !
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
LGTM if CI is ok: https://ci.nodejs.org/job/node-test-pull-request/4357/ |
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.
Needs some tailing whitespace removed from one line to satisfy the linter. Everything else LGTM.
client = dgram.createSocket('udp4'); | ||
const client = dgram.createSocket('udp4'); | ||
|
||
client.bind(0, 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.
The linter is failing because of trailing spaces on this line.
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.
make test
or (vcbuild test nosign
on Windows) would run the linter and would have caught this. If you want to run just the linter without running the whole test suite first, you can run the linter alone with make jslint
(or, I think, vcbuild jslint
on Windows).
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.
@Trott sorry for that!
git commit --amend
make lint
./configure && make -j8 test
Total errors found: 0
git push --force-with-lease origin dgram-empty-es6
Tested and pushed!
* Changed some `var` to `const` and 'let' * Changed `==` to `===` for clarity.
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
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 with the requested change.
Landing:
|
Stopped landing. @Goyapa you pushed additional commits? |
Wow. In very last minute just before landing: from few lines in single file to +1122/−383 lines in 55 files. @Goyapa merge gone wrong? ;) I'll take this up for landing prep again once you've cleaned up the source branch. |
@imyller |
@Goyapa No worries. Lets try again 👍 |
Landing:
|
* Changed some `var` to `const` and 'let' * Changed `==` to `===` for clarity. PR-URL: nodejs#8896 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Ilkka Myller <ilkka.myller@nodefield.com> Reviewed-By: Brian White <mscdex@mscdex.net> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
* Changed some `var` to `const` and 'let' * Changed `==` to `===` for clarity. PR-URL: #8896 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Ilkka Myller <ilkka.myller@nodefield.com> Reviewed-By: Brian White <mscdex@mscdex.net> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
* Changed some `var` to `const` and 'let' * Changed `==` to `===` for clarity. PR-URL: #8896 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Ilkka Myller <ilkka.myller@nodefield.com> Reviewed-By: Brian White <mscdex@mscdex.net> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Checklist
make -j8 test
(UNIX), orvcbuild test nosign
(Windows) passesAffected core subsystem(s)
Description of change
var
toconst
andlet
==
to===
for clarity.