Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: fix flaky test for symlinks #3418

Closed
wants to merge 3 commits into from
Closed

Conversation

Trott
Copy link
Member

@Trott Trott commented Oct 17, 2015

If the symlink portion of the test was being skipped due to a
combination of OS support and user privileges, then an assertion would
always fail. This fixes that problem, improves assertion error reporting
and renames the test to make it clear that it is a test for links and
not just symlinks.

Fixes: #3311

@Trott Trott added the test Issues and PRs related to the tests. label Oct 17, 2015
@Trott
Copy link
Member Author

Trott commented Oct 17, 2015

@mscdex mscdex added the fs Issues and PRs related to the fs subsystem / file system. label Oct 17, 2015
@jbergstroem
Copy link
Member

how about returning SKIP for this case?

@Trott
Copy link
Member Author

Trott commented Oct 18, 2015

It only skips the fs.symlink() test, but it still performs the fs.link() test. So if we wanted to do that, we would have to split this test into two different test files. Which, actually, makes a lot of sense...

If the symlink portion of the test was being skipped due to a
combination of OS support and user privileges, then an assertion would
always fail. This fixes that problem, improves assertion error reporting
and renames the test to make it clear that it is a test for links and
not just symlinks.

Fixes: nodejs#3311
@Trott
Copy link
Member Author

Trott commented Oct 18, 2015

@jbergstroem Test is now split into two files, one for fs.link() and one for fs.symlink(). When the symlink test is skipped it now outputs a TAP skip. PTAL

@Trott
Copy link
Member Author

Trott commented Oct 18, 2015

@jbergstroem
Copy link
Member

LGTM

Trott added a commit that referenced this pull request Oct 20, 2015
If the symlink portion of the test was being skipped due to a
combination of OS support and user privileges, then an assertion would
always fail. This fixes that problem, improves assertion error reporting
and splits the test to make it clear that it is a test for links and
symlinks.

Fixes: #3311
PR-URL: #3418
Reviewed-By: Johan Bergström <[email protected]>
@Trott
Copy link
Member Author

Trott commented Oct 20, 2015

Landed in 1c57845

@Trott Trott closed this Oct 20, 2015
Trott added a commit that referenced this pull request Oct 21, 2015
If the symlink portion of the test was being skipped due to a
combination of OS support and user privileges, then an assertion would
always fail. This fixes that problem, improves assertion error reporting
and splits the test to make it clear that it is a test for links and
symlinks.

Fixes: #3311
PR-URL: #3418
Reviewed-By: Johan Bergström <[email protected]>
@rvagg rvagg mentioned this pull request Oct 21, 2015
Trott added a commit that referenced this pull request Oct 26, 2015
If the symlink portion of the test was being skipped due to a
combination of OS support and user privileges, then an assertion would
always fail. This fixes that problem, improves assertion error reporting
and splits the test to make it clear that it is a test for links and
symlinks.

Fixes: #3311
PR-URL: #3418
Reviewed-By: Johan Bergström <[email protected]>
@jasnell
Copy link
Member

jasnell commented Oct 26, 2015

landed in v4.x-staging in d62d158

Trott added a commit that referenced this pull request Oct 29, 2015
If the symlink portion of the test was being skipped due to a
combination of OS support and user privileges, then an assertion would
always fail. This fixes that problem, improves assertion error reporting
and splits the test to make it clear that it is a test for links and
symlinks.

Fixes: #3311
PR-URL: #3418
Reviewed-By: Johan Bergström <[email protected]>
@Trott Trott deleted the win10-fs-symlink branch January 13, 2022 22:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fs Issues and PRs related to the fs subsystem / file system. test Issues and PRs related to the tests.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Investigate flaky test test-fs-symlink
4 participants