Skip to content
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

Closed
wants to merge 1 commit into from
Closed

test: cleanup/update test-dgram-empty-packet.js #8896

wants to merge 1 commit into from

Conversation

Goyapa
Copy link
Contributor

@Goyapa Goyapa commented Oct 2, 2016

Checklist
  • make -j8 test (UNIX), or vcbuild test nosign (Windows) passes
  • commit message follows commit guidelines
Affected core subsystem(s)
  • test
Description of change
  • Changed some var to const and let
  • Changed == to === for clarity.

@nodejs-github-bot nodejs-github-bot added the test Issues and PRs related to the tests. label Oct 2, 2016

client.bind(0, function() {

Copy link
Member

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.

@lpinca
Copy link
Member

lpinca commented Oct 2, 2016

Nit: description says that == has been replaced with includes but I don't see that change in the diff. Did you mean == -> ===?

@Goyapa
Copy link
Contributor Author

Goyapa commented Oct 2, 2016

@lpinca
I edited "test/parallel/test-dgram-empty-packet.js" locally
got rid of line 16
git add test/parallel/test-dgram-empty-packet.js
git commit --amend
edited the commit message
git push --force-with-lease origin dgram-empty-es6

finally edited comment

  • Changed == to includes for clarity.
  • Changed == to === for clarity.

Is this a usual way ore have u any suggestions?

@lpinca
Copy link
Member

lpinca commented Oct 2, 2016

@Goyapa yes, that's fine, thank you!

Copy link
Member

@lpinca lpinca left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@mscdex mscdex added the dgram Issues and PRs related to the dgram subsystem / UDP. label Oct 2, 2016
@@ -28,7 +29,6 @@ client.bind(0, function() {
callback();
});

const port = this.address().port;
Copy link
Contributor

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mscdex
changed !

Copy link
Member

@imyller imyller left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@mscdex
Copy link
Contributor

mscdex commented Oct 2, 2016

Copy link
Member

@Trott Trott left a 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() {
Copy link
Member

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.

Copy link
Member

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).

Copy link
Contributor Author

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.
Copy link
Member

@addaleax addaleax left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

@cjihrig cjihrig left a 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.

@mscdex
Copy link
Contributor

mscdex commented Oct 3, 2016

@imyller imyller self-assigned this Oct 5, 2016
@imyller
Copy link
Member

imyller commented Oct 5, 2016

Landing:

  • Approvals (LGTM): 7
  • No objections
  • PR has been open for the minimum time of 48 or 72 hours
  • All of the requested changes have been made
  • CI tests passed (only known/unrelated failures)

@imyller
Copy link
Member

imyller commented Oct 5, 2016

Stopped landing. @Goyapa you pushed additional commits?

@imyller
Copy link
Member

imyller commented Oct 5, 2016

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.

@Goyapa
Copy link
Contributor Author

Goyapa commented Oct 5, 2016

@imyller
Did not see your landing attempt! ;-)
Sorry for that!
I pushed the old reference again! :-)

@imyller
Copy link
Member

imyller commented Oct 5, 2016

@Goyapa No worries. Lets try again 👍

@imyller
Copy link
Member

imyller commented Oct 5, 2016

Landing:

  • Approvals (LGTM): 7
  • No objections
  • PR has been open for the minimum time of 48 or 72 hours
  • All of the requested changes have been made
  • CI tests passed (only known/unrelated failures)

imyller pushed a commit to imyller/node that referenced this pull request Oct 5, 2016
 * 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>
@imyller
Copy link
Member

imyller commented Oct 5, 2016

Landed in f68e0d1

Thank you for your effort and contribution, @Goyapa

@imyller imyller closed this Oct 5, 2016
@imyller imyller removed their assignment Oct 5, 2016
jasnell pushed a commit that referenced this pull request Oct 6, 2016
 * 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>
Fishrock123 pushed a commit that referenced this pull request Oct 11, 2016
 * 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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dgram Issues and PRs related to the dgram subsystem / UDP. test Issues and PRs related to the tests.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants