Skip to content

Update tls client test - #9968

Closed
rgoodwin wants to merge 1 commit into
nodejs:masterfrom
rgoodwin:update-tls-client-test
Closed

Update tls client test#9968
rgoodwin wants to merge 1 commit into
nodejs:masterfrom
rgoodwin:update-tls-client-test

Conversation

@rgoodwin

Copy link
Copy Markdown
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-botnodejs-github-bot added the test Issues and PRs related to the tests. label Dec 1, 2016
@mscdexmscdex added the tls Issues and PRs related to the tls subsystem. label Dec 1, 2016
@imyllerimyller 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
Copy Markdown
Contributor

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

@princejwesleyprincejwesley left a comment

Copy link
Copy Markdown
Contributor

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
rgoodwinforce-pushed the update-tls-client-test branch from 4e6c8c5 to 9b9161cCompareDecember 1, 2016 17:08
@rgoodwin

Copy link
Copy Markdown
Author

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

@mscdex

Copy link
Copy Markdown
Contributor

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
@rgoodwin
rgoodwinforce-pushed the update-tls-client-test branch from 9b9161c to d1e235aCompareDecember 1, 2016 17:14
@Intregrisist

Copy link
Copy Markdown
Contributor

@rgoodwin gj, commit message updated.

@rgoodwin

Copy link
Copy Markdown
Author

@mscdex Fixed, thanks for catching that.

@addaleax

Copy link
Copy Markdown
Member

@rgoodwin

Copy link
Copy Markdown
Author

@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
Copy Markdown
Member

@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
Copy Markdown
Member

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

@jasnelljasnell 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>
@MylesBorinsMylesBorins mentioned this pull request Dec 21, 2016
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

code-and-learnIssues related to the Code-and-Learn events and PRs submitted during the events.testIssues and PRs related to the tests.tlsIssues and PRs related to the tls subsystem.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants

@rgoodwin@mscdex@Intregrisist@addaleax@jasnell@princejwesley@MylesBorins@imyller@nodejs-github-bot