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

test: deflake test-fs-read-optional-params by lpinca · Pull Request #37991 · nodejs/node · GitHub

/ node Public

test: deflake test-fs-read-optional-params - #37991

Closed
lpinca wants to merge 1 commit into
nodejs:masterfrom
lpinca:fix/issue-37946
Closed

test: deflake test-fs-read-optional-params#37991
lpinca wants to merge 1 commit into
nodejs:masterfrom
lpinca:fix/issue-37946

Conversation

lpinca commented Mar 30, 2021

Copy link
Copy Markdown
Member

If fs.read() is called without specifying the position option, data
will be read from the current file position. There is another concurrent
fs.read() call before the test for no options object which might
invalidate the test expectations.

Run the test for no options object first.

Fixes: #37946

If `fs.read()` is called without specifying the `position` option, data
will be read from the current file position. There is another concurrent
`fs.read()` call before the test for no options object which might
invalidate the test expectations.

Run the test for no options object first.

Fixes: nodejs#37946
nodejs-github-bot added needs-ci PRs that need a full CI run. test Issues and PRs related to the tests. labels Mar 30, 2021

lpinca commented Mar 30, 2021

Copy link
Copy Markdown
Member Author

This seems to fix the issue on my Windows machine.

cc: @nodejs/fs

Copy link
Copy Markdown
Collaborator

lpinca added a commit that referenced this pull request Apr 3, 2021
If `fs.read()` is called without specifying the `position` option, data
will be read from the current file position. There is another concurrent
`fs.read()` call before the test for no options object which might
invalidate the test expectations.

Run the test for no options object first.

PR-URL: #37991
Fixes: #37946
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Darshan Sen <raisinten@gmail.com>

lpinca commented Apr 3, 2021

Copy link
Copy Markdown
Member Author

Landed in fae0320.

lpinca closed this Apr 3, 2021
lpinca deleted the fix/issue-37946 branch April 3, 2021 05:23
MylesBorins pushed a commit that referenced this pull request Apr 4, 2021
If `fs.read()` is called without specifying the `position` option, data
will be read from the current file position. There is another concurrent
`fs.read()` call before the test for no options object which might
invalidate the test expectations.

Run the test for no options object first.

PR-URL: #37991
Fixes: #37946
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Darshan Sen <raisinten@gmail.com>
MylesBorins mentioned this pull request Apr 4, 2021
MylesBorins pushed a commit that referenced this pull request Apr 5, 2021
If `fs.read()` is called without specifying the `position` option, data
will be read from the current file position. There is another concurrent
`fs.read()` call before the test for no options object which might
invalidate the test expectations.

Run the test for no options object first.

PR-URL: #37991
Fixes: #37946
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Darshan Sen <raisinten@gmail.com>
targos pushed a commit that referenced this pull request May 1, 2021
If `fs.read()` is called without specifying the `position` option, data
will be read from the current file position. There is another concurrent
`fs.read()` call before the test for no options object which might
invalidate the test expectations.

Run the test for no options object first.

PR-URL: #37991
Fixes: #37946
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Darshan Sen <raisinten@gmail.com>
danielleadams mentioned this pull request May 3, 2021
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

needs-ci PRs that need a full CI run. test Issues and PRs related to the tests.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

investigate flaky test-fs-read-optional-params

7 participants


Back | FazBrowse Home | New Git URL