GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — test: error when empty buffer is passed to filehandle.read() by shisama · Pull Request #23250 · nodejs/node

Conversation

@shisama

@shisama shisama commented Oct 3, 2018

Copy link
Copy Markdown
Contributor

Added tests to occur error when empty buffer is passed to filehandle.read()
to increase coverage.

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • commit message follows commit guidelines

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@nodejs-github-bot nodejs-github-bot added the test Issues and PRs related to Node.js core tests and test infrastructure. label Oct 3, 2018
cjihrig
cjihrig approved these changes Oct 4, 2018
View reviewed changes
thefourtheye
thefourtheye reviewed Oct 4, 2018
View reviewed changes
Comment thread test/parallel/test-fs-read-empty-buffer.js Outdated

@thefourtheye thefourtheye Oct 4, 2018

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Nit: if we could write this with await it would look better.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
thefourtheye
thefourtheye reviewed Oct 4, 2018
View reviewed changes
Comment thread test/parallel/test-fs-read-empty-buffer.js Outdated

@thefourtheye thefourtheye Oct 4, 2018

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Also, now that you are doing it, please cover the fs promises read with a file descriptor.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
BridgeAR
BridgeAR approved these changes Oct 4, 2018
View reviewed changes
jasnell
jasnell approved these changes Oct 5, 2018
View reviewed changes
thefourtheye
thefourtheye approved these changes Oct 6, 2018
View reviewed changes
Comment thread test/parallel/test-fs-read-empty-buffer.js Outdated

@thefourtheye thefourtheye Oct 6, 2018

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Nit: I think this needs to be aligned with 'The argument...

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

shisama reacted with thumbs up emoji
All reactions
  • 👍 1 reaction
@shisama
shisama force-pushed the test-fsPromises-readfile-empty-buffer branch from 61d6bef to a93f6e0 Compare October 6, 2018 15:17
trivikr
trivikr approved these changes Oct 6, 2018
View reviewed changes
@danbev

danbev commented Oct 10, 2018

Copy link
Copy Markdown
Contributor

@shisama Could you update the commit message and correct the length as reported by travis?

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

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@shisama
shisama force-pushed the test-fsPromises-readfile-empty-buffer branch from a93f6e0 to 3b01a5e Compare October 10, 2018 07:34
@shisama

shisama commented Oct 10, 2018

Copy link
Copy Markdown
Contributor Author

@danbev Thank you for your comment. I updated the commit message.

danbev reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@danbev

danbev commented Oct 10, 2018

Copy link
Copy Markdown
Contributor

@shisama Sorry about this, but could I also ask you to rebase this to fix this travis CI failure? (this is related to #23397).

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Masashi Hirano added 3 commits October 10, 2018 18:10
Masashi Hirano
test: error when empty buffer is passed to filehandle.read()
ea4b362
Added tests to occur error when empty buffer is passed to
filehandle.read() to increase coverage.
Masashi Hirano
test: use async function for filehandle.read() test
464c83a
Masashi Hirano
test: make error message aligned
41afe00
@shisama
shisama force-pushed the test-fsPromises-readfile-empty-buffer branch from 3b01a5e to 41afe00 Compare October 10, 2018 09:10
@danbev

danbev commented Oct 10, 2018 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Re-run of failing node-test-commit-linux-containered ✔️

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@shisama

shisama commented Oct 10, 2018

Copy link
Copy Markdown
Contributor Author

@danbev Thank you to tell me that this should be rebased and to run CI.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@danbev

danbev commented Oct 10, 2018

Copy link
Copy Markdown
Contributor

Landed in a8530bc.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@danbev danbev closed this Oct 10, 2018
danbev pushed a commit that referenced this pull request Oct 10, 2018
Masashi Hirano @danbev
test: error when empty buffer is passed to filehandle.read()
a8530bc
Added tests to occur error when empty buffer is passed to
filehandle.read() to increase coverage.

PR-URL: #23250
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Ruben Bridgewater <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Sakthipriyan Vairamani <[email protected]>
Reviewed-By: Trivikram Kamat <[email protected]>
@targos targos added dont-land-on-v6.x labels Oct 10, 2018
jasnell pushed a commit that referenced this pull request Oct 17, 2018
Masashi Hirano @jasnell
test: error when empty buffer is passed to filehandle.read()
b5c75a3
Added tests to occur error when empty buffer is passed to
filehandle.read() to increase coverage.

PR-URL: #23250
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Ruben Bridgewater <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Sakthipriyan Vairamani <[email protected]>
Reviewed-By: Trivikram Kamat <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@jasnell jasnell jasnell approved these changes
@cjihrig cjihrig cjihrig approved these changes
@BridgeAR BridgeAR BridgeAR approved these changes
@trivikr trivikr trivikr approved these changes
+1 more reviewer
@thefourtheye thefourtheye thefourtheye approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

test Issues and PRs related to Node.js core tests and test infrastructure.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

9 participants

@shisama @danbev @jasnell @thefourtheye @cjihrig @BridgeAR @trivikr @targos @nodejs-github-bot
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.