Skip to content

test: add coverage for socket write after close - #13171

Merged
cjihrig merged 1 commit into
nodejs:masterfrom
cjihrig:connect
May 26, 2017
Merged

test: add coverage for socket write after close#13171
cjihrig merged 1 commit into
nodejs:masterfrom
cjihrig:connect

Conversation

@cjihrig

Copy link
Copy Markdown
Contributor

This commit adds test coverage for the scenario where a socket's
handle has been closed prior to writing.

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • commit message follows commit guidelines
Affected core subsystem(s)

test

@nodejs-github-botnodejs-github-bot added the test Issues and PRs related to the tests. label May 23, 2017
@mscdexmscdex added the net Issues and PRs related to the net subsystem. label May 23, 2017

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.

Nit: can we add an assertion for the error class?

assert.strictEqual(err.constructor,Error);

@mhdawsonmhdawson 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

@cjihrig
cjihrigforce-pushed the connect branch 2 times, most recently from 29b2993 to 7169523CompareMay 25, 2017 18:20
@cjihrig

Copy link
Copy Markdown
ContributorAuthor

This commit adds test coverage for the scenario where a socket's
handle has been closed prior to writing.
PR-URL: nodejs#13171
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Refael Ackermann <refack@gmail.com>
@cjihrig
cjihrig merged commit 6a18c1d into nodejs:masterMay 26, 2017
@cjihrig
cjihrig deleted the connect branch May 26, 2017 16:24
jasnell pushed a commit that referenced this pull request May 28, 2017
This commit adds test coverage for the scenario where a socket's
handle has been closed prior to writing.
PR-URL: #13171
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Refael Ackermann <refack@gmail.com>
@jasnelljasnell mentioned this pull request May 28, 2017
@gibfahngibfahn mentioned this pull request Jun 15, 2017
3 tasks
MylesBorins pushed a commit that referenced this pull request Jul 17, 2017
This commit adds test coverage for the scenario where a socket's
handle has been closed prior to writing.
PR-URL: #13171
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Refael Ackermann <refack@gmail.com>
@MylesBorinsMylesBorins mentioned this pull request Jul 18, 2017
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

netIssues and PRs related to the net subsystem.testIssues and PRs related to the tests.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants

@cjihrig@refack@jasnell@lpinca@mhdawson@mscdex@MylesBorins@nodejs-github-bot