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 symlink test init on windows #307

Merged
merged 4 commits into from
Nov 12, 2024

Conversation

sapphi-red
Copy link
Contributor

@sapphi-red sapphi-red commented Nov 12, 2024

When calling fs::remove_file against a symlink pointing a directory on Windows, PermissionDenied error was happening. This was causing the symlink tests to pass only for the first time.

But this makes the symlink tests to fail on Windows (#308). 🫠 I was able to fix them.
fixes #308

@Boshen Boshen enabled auto-merge (squash) November 12, 2024 02:39
@Boshen Boshen merged commit ebc6c36 into oxc-project:main Nov 12, 2024
17 checks passed
@Boshen Boshen mentioned this pull request Nov 12, 2024
@sapphi-red sapphi-red deleted the chore/fix-symlink-test-on-windows branch November 12, 2024 02:42
Copy link

codspeed-hq bot commented Nov 12, 2024

CodSpeed Performance Report

Merging #307 will not alter performance

Comparing sapphi-red:chore/fix-symlink-test-on-windows (fb2c1ea) with main (1fe94ec)

Summary

✅ 3 untouched benchmarks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Relative symlink to a file tests fail on Windows
2 participants