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

test: replace assert.throws with common.expectsError by mithunsasidharan · Pull Request #17494 · nodejs/node · GitHub

/ node Public

test: replace assert.throws with common.expectsError - #17494

Closed
mithunsasidharan wants to merge 1 commit into
nodejs:masterfrom
mithunsasidharan:common_4
Closed

test: replace assert.throws with common.expectsError#17494
mithunsasidharan wants to merge 1 commit into
nodejs:masterfrom
mithunsasidharan:common_4

Conversation

mithunsasidharan commented Dec 6, 2017
edited
Loading

Copy link
Copy Markdown
Contributor

Refactored tests to replace assert.throws(fn, common.expectsError(err)); with common.expectsError(fn, err); in following test files :

  • test/parallel/test-dgram-createSocket-type.js
  • test/parallel/test-dgram-custom-lookup.js
  • test/parallel/test-dgram-membership.js
  • test/parallel/test-dgram-multicast-setTTL.js
  • test/parallel/test-dgram-sendto.js
  • test/parallel/test-dgram-setTTL.js
  • test/parallel/test-dgram-socket-buffer-size.js
  • test/parallel/test-dns-lookup.js
  • test/parallel/test-dns-regress-7070.js
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-bot added the test Issues and PRs related to the tests. label Dec 6, 2017

apapirovski 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.

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

LGTM but commit message should ideally be adjusted to <= 50 chars.

mithunsasidharan changed the title test: refactored to replace assert.throws with common.expectsError test: replace assert.throws with common.expectsError Dec 6, 2017

Copy link
Copy Markdown
Contributor Author

@apapirovski : Thanks.. updated both PR and commit message. Thanks !

Copy link
Copy Markdown
Contributor

maclover7 added the author ready PRs that have at least one approval, no outstanding review comments, and a CI started. label Dec 7, 2017

Copy link
Copy Markdown
Contributor

Lone failure appears unrelated, landing now.

Copy link
Copy Markdown
Contributor

Landed in 20a8e83

apapirovski closed this Dec 8, 2017
apapirovski pushed a commit that referenced this pull request Dec 8, 2017
PR-URL: #17494
Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Jon Moss <me@jonathanmoss.me>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
MylesBorins pushed a commit that referenced this pull request Dec 12, 2017
PR-URL: #17494
Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Jon Moss <me@jonathanmoss.me>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
MylesBorins pushed a commit that referenced this pull request Dec 12, 2017
PR-URL: #17494
Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Jon Moss <me@jonathanmoss.me>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
MylesBorins mentioned this pull request Dec 12, 2017
addaleax removed the author ready PRs that have at least one approval, no outstanding review comments, and a CI started. label Dec 13, 2017
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

test Issues and PRs related to the tests.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

10 participants


Back | FazBrowse Home | New Git URL