Skip to content

test: clean tls-connect-given-socket - #8616

Closed
thomasvanlankveld wants to merge 4 commits into
nodejs:masterfrom
thomasvanlankveld:clean-test-tls-connect-given-socket
Closed

test: clean tls-connect-given-socket#8616
thomasvanlankveld wants to merge 4 commits into
nodejs:masterfrom
thomasvanlankveld:clean-test-tls-connect-given-socket

Conversation

@thomasvanlankveld

@thomasvanlankveldthomasvanlankveld commented Sep 17, 2016

Copy link
Copy Markdown
Checklist
  • make -j4 test (UNIX), or vcbuild test nosign (Windows) passes
Description of change

Changed vars to consts and lets, assert.equals to assert.strictEquals and added
common.mustCall around a connect callback

Changed vars to consts and lets, assert.equals to assert.strictEquals and added
common.mustCall around a connect callback
@nodejs-github-botnodejs-github-bot added the test Issues and PRs related to the tests. label Sep 17, 2016

@cjihrigcjihrig 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.

LGTM

@mscdexmscdex added the tls Issues and PRs related to the tls subsystem. label Sep 17, 2016
var connected = net.connect(server.address().port, function() {
const connected = net.connect(server.address().port, function() {
establish(connected);
});

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Could/should this function get a common.mustCall, too?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Yes

client.on('data', function(chunk) {
data += chunk.toString();
});
client.on('end', function() {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

common.mustCall()?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Yes actually (35 & 38)

Thomas van Lankveld added 3 commits September 18, 2016 12:42
Changed vars to consts and lets, assert.equals to assert.strictEquals and added
common.mustCall around a connect callback
Added more common.mustCalls, switched to arrow functions
Merge branch 'clean-test-tls-connect-given-socket' of github.com:thomasvanlankveld/node into clean-test-tls-connect-given-socket

@jasnelljasnell left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM with green CI

@jasnell

Copy link
Copy Markdown
Member

@imyllerimyller left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

@imyllerimyller self-assigned this Sep 20, 2016
@imyller

Copy link
Copy Markdown
Member

@addaleax are you satisfied with the changes? Looks like your review suggestions have been addressed.

@addaleaxaddaleax left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Yes, LGTM!

Also, I generally trust collaborators here to be able to tell whether my requested changes have been made – I appreciate the ping, but you don’t need to wait for me or anything.

return client;
}

const { port } = server.address();

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Nice trick, I should think of that the next time I do this.

@imyller

Copy link
Copy Markdown
Member

I'll start landing this:

  • Four LGTMs
  • No objections
  • All requested changes to the code have been made
  • CI tests passed (usual CI failures only)

imyller pushed a commit to imyller/node that referenced this pull request Sep 20, 2016
Changed vars to consts and lets, assert.equals to
assert.strictEquals and added common.mustCall around callbacks.
Switched to arrow functions.
PR-URL: nodejs#8616
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Ilkka Myller <ilkka.myller@nodefield.com>
@imyller

Copy link
Copy Markdown
Member

landed in 80620d8

Thank you for your contribution, @thomasvanlankveld

@imyllerimyller closed this Sep 20, 2016
@imyllerimyller removed their assignment Sep 20, 2016
Fishrock123 pushed a commit that referenced this pull request Oct 11, 2016
Changed vars to consts and lets, assert.equals to
assert.strictEquals and added common.mustCall around callbacks.
Switched to arrow functions.
PR-URL: #8616
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Ilkka Myller <ilkka.myller@nodefield.com>
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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.

8 participants

@thomasvanlankveld@jasnell@imyller@addaleax@cjihrig@mscdex@MylesBorins@nodejs-github-bot