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

fix: fix node crash under Windows (fix #582) #588

Merged
merged 3 commits into from
Jan 19, 2022

Conversation

Demivan
Copy link
Member

@Demivan Demivan commented Jan 19, 2022

Fixes #582

@netlify
Copy link

netlify bot commented Jan 19, 2022

✔️ Deploy Preview for vitest-dev ready!

🔨 Explore the source changes: e2a00cc

🔍 Inspect the deploy log: https://app.netlify.com/sites/vitest-dev/deploys/61e857fdca755f0007090eec

😎 Browse the preview: https://deploy-preview-588--vitest-dev.netlify.app

@Demivan Demivan mentioned this pull request Jan 19, 2022
6 tasks
)
setTimeout(() => {
console.warn(`close timed out after ${CLOSE_TIMEOUT}ms`)
process.exit()
Copy link
Member

Choose a reason for hiding this comment

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

shouldn't exitCode be 1?

Copy link
Member Author

Choose a reason for hiding this comment

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

I'm not sure. It does not mean that tests have failed. We weren't returning 1 on timeout before this.

Copy link
Member Author

Choose a reason for hiding this comment

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

But it probably does not matter (as this should not happen) and we can have 1 just in case. This way if we have a task that does not finish in time we will get an error and can investigate.

Copy link
Member Author

Choose a reason for hiding this comment

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

We actually have some long running stuff and it fails. Need to investigate

@userquin
Copy link
Member

this changes works

@sheremet-va sheremet-va merged commit 86b7e03 into vitest-dev:main Jan 19, 2022
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.

Crashes under Windows
3 participants