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: refactor test-tls-reuse-host-from-socket #6756

Closed
wants to merge 1 commit into from

Conversation

Trott
Copy link
Member

@Trott Trott commented May 14, 2016

Checklist
  • tests and code linting passes
  • the commit message follows commit guidelines
Affected core subsystem(s)

test tls

Description of change

Replace booleans with common.mustCall(), migrate from var to
const, and apply minor formatting changes.

/cc @nodejs/testing @nodejs/crypto

@Trott Trott added tls Issues and PRs related to the tls subsystem. test Issues and PRs related to the tests. labels May 14, 2016
@indutny
Copy link
Member

indutny commented May 14, 2016

LGTM if CI is green.

secureSocket.destroy();
});
});
console.log('ok');
Copy link
Member

Choose a reason for hiding this comment

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

Maybe remove this log?

Copy link
Member Author

Choose a reason for hiding this comment

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

I left it in to preserve the original test's logging. But I'm happy to take it out.

@santigimeno
Copy link
Member

CI: https://ci.nodejs.org/job/node-test-pull-request/2646/. LGTM if CI is green.

connected = true;
var secureSocket = tls.connect({ socket: socket }, function() {
secure = true;
const socket = net.connect(443, 'www.google.com', common.mustCall(() => {
Copy link
Member

Choose a reason for hiding this comment

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

Can this be pointed at a non-specific url? www.example.org for instance?

Copy link
Member Author

Choose a reason for hiding this comment

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

Changed. Thanks!

@jasnell
Copy link
Member

jasnell commented May 15, 2016

Minor nit, otherwise LGTM

@Trott Trott force-pushed the tlsyo branch 2 times, most recently from 0acd996 to 34cfca9 Compare May 19, 2016 20:14
Replace booleans with `common.mustCall()`, migrate from `var` to
`const`, and apply minor formatting changes.
@Trott
Copy link
Member Author

Trott commented May 19, 2016

Fixed a nit, rebased, force pushed. CI: https://ci.nodejs.org/job/node-test-pull-request/2706/

@Trott
Copy link
Member Author

Trott commented May 19, 2016

Ci is green. Landing...

Trott added a commit to Trott/io.js that referenced this pull request May 19, 2016
Replace booleans with `common.mustCall()`, migrate from `var` to
`const`, and apply minor formatting changes.

PR-URL: nodejs#6756
Reviewed-By: Fedor Indutny <fedor.indutny@gmail.com>
Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
@Trott
Copy link
Member Author

Trott commented May 19, 2016

Landed in 395cc88

@Trott Trott closed this May 19, 2016
Fishrock123 pushed a commit that referenced this pull request May 23, 2016
Replace booleans with `common.mustCall()`, migrate from `var` to
`const`, and apply minor formatting changes.

PR-URL: #6756
Reviewed-By: Fedor Indutny <fedor.indutny@gmail.com>
Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
rvagg pushed a commit that referenced this pull request Jun 2, 2016
Replace booleans with `common.mustCall()`, migrate from `var` to
`const`, and apply minor formatting changes.

PR-URL: #6756
Reviewed-By: Fedor Indutny <fedor.indutny@gmail.com>
Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
MylesBorins pushed a commit that referenced this pull request Jun 3, 2016
Replace booleans with `common.mustCall()`, migrate from `var` to
`const`, and apply minor formatting changes.

PR-URL: #6756
Reviewed-By: Fedor Indutny <fedor.indutny@gmail.com>
Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
@MylesBorins MylesBorins mentioned this pull request Jun 24, 2016
MylesBorins pushed a commit that referenced this pull request Jun 24, 2016
Replace booleans with `common.mustCall()`, migrate from `var` to
`const`, and apply minor formatting changes.

PR-URL: #6756
Reviewed-By: Fedor Indutny <fedor.indutny@gmail.com>
Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
MylesBorins pushed a commit that referenced this pull request Jun 24, 2016
Replace booleans with `common.mustCall()`, migrate from `var` to
`const`, and apply minor formatting changes.

PR-URL: #6756
Reviewed-By: Fedor Indutny <fedor.indutny@gmail.com>
Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
@Trott Trott deleted the tlsyo branch January 13, 2022 22:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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.

5 participants