FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

test,net: add tests for server.connections by Trott · Pull Request #10762 · nodejs/node · GitHub

/ node Public

test,net: add tests for server.connections - #10762

Closed
Trott wants to merge 2 commits into
nodejs:masterfrom
Trott:connections
Closed

test,net: add tests for server.connections#10762
Trott wants to merge 2 commits into
nodejs:masterfrom
Trott:connections

Conversation

Trott commented Jan 12, 2017

Copy link
Copy Markdown
Member

There were no tests confirming situations where server.connections
should return null. Add a test for that situation.

Expand existing server.connection test slightly to check value.

Refactor (mostly spacing) code for server.connections setter.

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 net

There were no tests confirming situations where server.connections
should return `null`. Add a test for that situation.

Expand existing server.connection test slightly to check value.

Refactor (mostly spacing) code for server.connections setter.
Trott added net Issues and PRs related to the net subsystem. test Issues and PRs related to the tests. labels Jan 12, 2017
nodejs-github-bot added net Issues and PRs related to the net subsystem. dont-land-on-v7.x labels Jan 12, 2017
// has been marked as deprecated
assert.strictEqual(Object.keys(server).indexOf('connections'), -1);

assert.strictEqual(server.connections, 0);

jasnell Jan 12, 2017
edited
Loading

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.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

You might also consider adding a check for the deprecation warning... e.g.

common.expectWarning('DeprecationWarning',
                     'Server.connections property is deprecated.');

Trott commented Jan 13, 2017

Copy link
Copy Markdown
Member Author

Trott added a commit to Trott/io.js that referenced this pull request Jan 15, 2017
There were no tests confirming situations where server.connections
should return `null`. Add a test for that situation.

Expand existing server.connection test slightly to check value.

Refactor (mostly spacing) code for server.connections setter.

PR-URL: nodejs#10762
Reviewed-By: James M Snell <jasnell@gmail.com>

Trott commented Jan 15, 2017

Copy link
Copy Markdown
Member Author

Landed in 97f001a

Trott closed this Jan 15, 2017
italoacasas pushed a commit to italoacasas/node that referenced this pull request Jan 18, 2017
There were no tests confirming situations where server.connections
should return `null`. Add a test for that situation.

Expand existing server.connection test slightly to check value.

Refactor (mostly spacing) code for server.connections setter.

PR-URL: nodejs#10762
Reviewed-By: James M Snell <jasnell@gmail.com>
targos pushed a commit that referenced this pull request Jan 28, 2017
There were no tests confirming situations where server.connections
should return `null`. Add a test for that situation.

Expand existing server.connection test slightly to check value.

Refactor (mostly spacing) code for server.connections setter.

PR-URL: #10762
Reviewed-By: James M Snell <jasnell@gmail.com>
italoacasas mentioned this pull request Jan 29, 2017
italoacasas pushed a commit to italoacasas/node that referenced this pull request Jan 30, 2017
There were no tests confirming situations where server.connections
should return `null`. Add a test for that situation.

Expand existing server.connection test slightly to check value.

Refactor (mostly spacing) code for server.connections setter.

PR-URL: nodejs#10762
Reviewed-By: James M Snell <jasnell@gmail.com>
italoacasas pushed a commit to italoacasas/node that referenced this pull request Jan 30, 2017
There were no tests confirming situations where server.connections
should return `null`. Add a test for that situation.

Expand existing server.connection test slightly to check value.

Refactor (mostly spacing) code for server.connections setter.

PR-URL: nodejs#10762
Reviewed-By: James M Snell <jasnell@gmail.com>

jasnell commented Mar 8, 2017

Copy link
Copy Markdown
Member

A backport PR would be required in order for this to land in v6 or v4

Trott deleted the connections branch January 13, 2022 22:45
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

net Issues and PRs related to the net subsystem. test Issues and PRs related to the tests.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants


Back | FazBrowse Home | New Git URL