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

Update tls client test #9968

Closed
wants to merge 1 commit into from

Conversation

rgoodwin
Copy link

@rgoodwin rgoodwin commented Dec 1, 2016

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

tests

Description of change

Update tls test with

  • to use const/let for definition of variables (instead of using var).
  • update equal assertions with strict equality check to ensure deeper comparison of expected value with return value
  • wrap function callbacks in with common.mustCall to avoid repeated calls

@nodejs-github-bot nodejs-github-bot added the test Issues and PRs related to the tests. label Dec 1, 2016
@mscdex mscdex added the tls Issues and PRs related to the tls subsystem. label Dec 1, 2016
@imyller imyller added the code-and-learn Issues related to the Code-and-Learn events and PRs submitted during the events. label Dec 1, 2016
@mscdex
Copy link
Contributor

mscdex commented Dec 1, 2016

The commit message should start with test: and the first line should be <= 50 characters. See the commit message guidelines here.

Copy link
Contributor

@princejwesley princejwesley left a comment

Choose a reason for hiding this comment

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

  • Merge commits as single commit
  • Commit message is too long, follow commit message guideline

@rgoodwin
Copy link
Author

rgoodwin commented Dec 1, 2016

@mscdex @princejwesley cleaned up commit message and squashed commits. Please let me know if there is anything else.

@mscdex
Copy link
Contributor

mscdex commented Dec 1, 2016

The prefix should be test: instead of tests: .

Replace variable defs using var with more up to date const/let. Updated tests to use strict equality to ensure type and value comparision

tests: wrap callback functions in common.mustCall to ensure single execution
@Intregrisist
Copy link
Contributor

@rgoodwin gj, commit message updated.

@rgoodwin
Copy link
Author

rgoodwin commented Dec 1, 2016

@mscdex Fixed, thanks for catching that.

@addaleax
Copy link
Member

addaleax commented Dec 2, 2016

@rgoodwin
Copy link
Author

rgoodwin commented Dec 3, 2016

@addaleax Can you recommend what I should do now.

I'm new to this build and it looks like it has a lot of target OS/hardware combos. It looks like it failed on ARM etc... because of a timeout. Not sure how I would debug on those platforms. I'm on OSX and on that I followed the contribution guide and ran make test and it was fine.

Or are the timeouts part of long test cycles and I somehow need to re-run the build etc..?

Thanks

@addaleax
Copy link
Member

addaleax commented Dec 3, 2016

@rgoodwin These timeouts are not related to the test file you are changing, so we should be good here :)

jasnell pushed a commit that referenced this pull request Dec 5, 2016
* Replace variable defs using var with more up to date const/let.
* Updated tests to use strict equality to ensure type and value
  comparision
* wrap callback functions in common.mustCall to ensure single execution

PR-URL: #9968
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: James M Snell <jasnell@gmail.com>
@jasnell
Copy link
Member

jasnell commented Dec 5, 2016

Landed in c142e27. Thank you for the PR and for participating in the code-and-learn!

@jasnell jasnell closed this Dec 5, 2016
Fishrock123 pushed a commit that referenced this pull request Dec 6, 2016
* Replace variable defs using var with more up to date const/let.
* Updated tests to use strict equality to ensure type and value
  comparision
* wrap callback functions in common.mustCall to ensure single execution

PR-URL: #9968
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: James M Snell <jasnell@gmail.com>
addaleax pushed a commit to addaleax/node that referenced this pull request Dec 8, 2016
* Replace variable defs using var with more up to date const/let.
* Updated tests to use strict equality to ensure type and value
  comparision
* wrap callback functions in common.mustCall to ensure single execution

PR-URL: nodejs#9968
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: James M Snell <jasnell@gmail.com>
jmdarling pushed a commit to jmdarling/node that referenced this pull request Dec 8, 2016
* Replace variable defs using var with more up to date const/let.
* Updated tests to use strict equality to ensure type and value
  comparision
* wrap callback functions in common.mustCall to ensure single execution

PR-URL: nodejs#9968
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: James M Snell <jasnell@gmail.com>
MylesBorins pushed a commit that referenced this pull request Dec 21, 2016
* Replace variable defs using var with more up to date const/let.
* Updated tests to use strict equality to ensure type and value
  comparision
* wrap callback functions in common.mustCall to ensure single execution

PR-URL: #9968
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: James M Snell <jasnell@gmail.com>
@MylesBorins MylesBorins mentioned this pull request Dec 21, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
code-and-learn Issues related to the Code-and-Learn events and PRs submitted during the events. test Issues and PRs related to the tests. tls Issues and PRs related to the tls subsystem.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants