Skip to content

Conversation

@rajapanidepu
Copy link

@rajapanidepu rajapanidepu commented Dec 1, 2016

Checklist
  • make -j8 test (UNIX), or vcbuild test nosign (Windows) passes
  • commit message follows commit guidelines
Affected core subsystem(s)

test

Description of change

Change var to const.
Wrap callback of createServer with common.mustCall.

@nodejs-github-bot nodejs-github-bot added the test Issues and PRs related to the tests. 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
@julianduque julianduque added the tls Issues and PRs related to the tls subsystem. label Dec 1, 2016
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.

Second line in the commit message is longer than 72 characters. Fix it 😄

Change var to const.
Wrap callback of createServer with common.mustCall.
@rajapanidepu
Copy link
Author

@princejwesley Updated commit message and PR description.

this.close();
});
tls.createServer({ ciphers: 'AECDH-NULL-SHA' })
.listen(0, common.mustCall(function() {
Copy link
Contributor

Choose a reason for hiding this comment

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

common.mustCall() is not needed here. If the callback is not called, the server won't be closed, and the test will timeout.

@Trott
Copy link
Member

Trott commented Dec 22, 2016

The test has since been sufficiently expanded that once this is rebased against master, there are no changes left. I'm going to close this. Thanks for the contribution though! And I'm glad to see your other PR landed! 🎉

@Trott Trott closed this Dec 22, 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.

7 participants