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

test: Use common.expectsError in tests by mithunsasidharan · Pull Request #17484 · nodejs/node · GitHub

/ node Public

test: Use common.expectsError in tests - #17484

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

test: Use common.expectsError in tests#17484
mithunsasidharan wants to merge 1 commit into
nodejs:masterfrom
mithunsasidharan:common_3

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-buffer-slow.js
  • test/parallel/test-buffer-tostring-range.js
  • test/parallel/test-child-process-send-type-error.js
  • test/parallel/test-child-process-spawnsync-kill-signal.js
  • test/parallel/test-child-process-stdio.js
  • test/parallel/test-child-process-validate-stdio.js
  • test/parallel/test-common.js
  • test/parallel/test-console-instance.js
  • test/parallel/test-dgram-bind.js
  • test/parallel/test-dgram-create-socket-handle.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

Copy link
Copy Markdown
Contributor

Hi @mithunsasidharan — thank you for contributing. Could you use the checklist in your PR to indicate which changes have happened or whether you've run the tests locally? It seems like all your PRs have the checkboxes completely unchecked. In general, it's helpful to at least run make test -j4 locally.

Copy link
Copy Markdown
Contributor Author

@apapirovski : Sorry for missing out on that. I usually run all test for any changes I make make -j4 test including changes in this PR. I'll be creating few more PRs for the same change in left over files. Let me know if you need any more info from my side. Thanks a lot.

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. Thanks for updating the checklist 👍

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

CI: https://ci.nodejs.org/job/node-test-pull-request/11985/

CI was a little wonky the last time, just running again to be safe.

Copy link
Copy Markdown
Contributor

Landed in d8c896c

apapirovski closed this Dec 8, 2017
apapirovski pushed a commit that referenced this pull request Dec 8, 2017
PR-URL: #17484
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Jon Moss <me@jonathanmoss.me>
MylesBorins pushed a commit that referenced this pull request Dec 12, 2017
PR-URL: #17484
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Jon Moss <me@jonathanmoss.me>
MylesBorins pushed a commit that referenced this pull request Dec 12, 2017
PR-URL: #17484
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Jon Moss <me@jonathanmoss.me>
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