Skip to content

Conversation

@edsadr
Copy link
Member

@edsadredsadr commented Dec 12, 2016

Checklist
  • make -j4 test (UNIX), or vcbuild test nosign (Windows) passes
  • tests and/or benchmarks are included
  • commit message follows commit guidelines
Affected core subsystem(s)

test

Description of change

refactor test-http-dns-fail.js

  • remove counter used to control function execution
  • use commont.mustCall to control the function execution
  • use const and let instead of var
  • use arrow functions

@nodejs-github-botnodejs-github-bot added test Issues and PRs related to the tests. lts-watch-v6.x labels Dec 12, 2016
@lance
Copy link
Member

LGTM

@mscdexmscdex added the dns Issues and PRs related to the dns subsystem. label Dec 12, 2016
Copy link
Contributor

@mscdexmscdexDec 12, 2016

Choose a reason for hiding this comment

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

I would suggest changing this to }, 2)); and then getting rid of hadError entirely.

EDIT: Actually after further review I think we can just get rid of hadError entirely without changing this line ...

Copy link
Contributor

Choose a reason for hiding this comment

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

Would you mind reversing the conditional here to count > 1 while you're in this file? I personally find it much easier to understand when scanning code...

Copy link
Contributor

Choose a reason for hiding this comment

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

I think this should be removed? I still don't know if we have an official policy on this or not ...

@mscdexmscdex added the http Issues or PRs related to the http subsystem. label Dec 12, 2016
* remove counter used to control function execution * use commont.mustCall to control the function execution * use const and let instead of var * use arrow functions
@edsadredsadr changed the title test: use ES6 in test-http-dns-failtest: refactor test-http-dns-failDec 12, 2016
@edsadr
Copy link
MemberAuthor

@mscdex just implemented your suggestions, also removed the console.log, I was actually wondering about this...

@mscdex
Copy link
Contributor

@mscdex
Copy link
Contributor

LGTM

@italoacasas
Copy link

Landed 75ac109

Thanks for the contribution.

italoacasas pushed a commit that referenced this pull request Dec 14, 2016
* remove counter used to control function execution * use commont.mustCall to control the function execution * use const and let instead of var * use arrow functions PR-URL: #10243 Reviewed-By: Italo A. Casas <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Lance Ball <[email protected]> Reviewed-By: Brian White <[email protected]>
MylesBorins pushed a commit that referenced this pull request Dec 15, 2016
* remove counter used to control function execution * use commont.mustCall to control the function execution * use const and let instead of var * use arrow functions PR-URL: #10243 Reviewed-By: Italo A. Casas <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Lance Ball <[email protected]> Reviewed-By: Brian White <[email protected]>
@italoacasasitaloacasas mentioned this pull request Dec 15, 2016
MylesBorins pushed a commit that referenced this pull request Jan 22, 2017
* remove counter used to control function execution * use commont.mustCall to control the function execution * use const and let instead of var * use arrow functions PR-URL: #10243 Reviewed-By: Italo A. Casas <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Lance Ball <[email protected]> Reviewed-By: Brian White <[email protected]>
MylesBorins pushed a commit that referenced this pull request Jan 24, 2017
* remove counter used to control function execution * use commont.mustCall to control the function execution * use const and let instead of var * use arrow functions PR-URL: #10243 Reviewed-By: Italo A. Casas <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Lance Ball <[email protected]> Reviewed-By: Brian White <[email protected]>
@MylesBorinsMylesBorins mentioned this pull request Jan 24, 2017
MylesBorins pushed a commit that referenced this pull request Jan 31, 2017
* remove counter used to control function execution * use commont.mustCall to control the function execution * use const and let instead of var * use arrow functions PR-URL: #10243 Reviewed-By: Italo A. Casas <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Lance Ball <[email protected]> Reviewed-By: Brian White <[email protected]>
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dnsIssues and PRs related to the dns subsystem.httpIssues or PRs related to the http subsystem.testIssues and PRs related to the tests.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants

@edsadr@lance@mscdex@italoacasas@lpinca@cjihrig@MylesBorins@nodejs-github-bot