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

chore: try fix flaky test #2203

Merged
merged 1 commit into from
Nov 16, 2023
Merged

Conversation

jasonlyu123
Copy link
Member

@jasonlyu123 jasonlyu123 commented Nov 16, 2023

https://github.com/sveltejs/svelte-ecosystem-ci/actions/runs/6845976020/job/18611980022

There are two files that don't exist that were referenced in the test. We must rely on openClientDocument to open them. But It seems like there is a race condition somewhere that would close it after it's opened. I'm not really sure if this is the case since I can't reproduce it locally even if I run it at least 100 times.

If the file does exist, it'll be loaded as a project file the first time the ts service is created. And the openClientDocument will only be used as a failed safe. Hopefully, it will fix the problem. I also added a new test to test the language feature of the client file that doesn't exist in the file system. It's tested in a virtual system, so it should be more isolated and less likely to fail randomly.

@dummdidumm dummdidumm merged commit 27c56d8 into sveltejs:master Nov 16, 2023
2 checks passed
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.

2 participants