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(deno): close all subprocess resources #1238

Merged
merged 3 commits into from
May 6, 2021

Conversation

lucacasonato
Copy link
Contributor

PR is split into three independent commits with comments for easy reviewing :-)

This commit switches the custom test runner to the built in Deno one.

Tests in a single module are now run in series, but if more tests are
added they can be split across files and the upcoming `--jobs` arg can
be used for parallization.
This commit fixes lib/deno/mod.ts to close all subprocess resources on
cleanup, so stdout and stdin, not just the child process itself.

This commit also changes `esbuild.stop` and `esbuild.initalize` to be
callable multiple times in the same isolate.
console.error(`❌ deno tests failed`)
Deno.exit(1)
} else {
console.log(`✅ deno tests passed`)
Copy link
Owner

Choose a reason for hiding this comment

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

I had this in there because I run all tests in parallel and without this it's hard to see which top-level test failed. That's ok though; I can add this back.

@evanw
Copy link
Owner

evanw commented May 6, 2021

Thanks for contributing this! I appreciate it.

@evanw evanw merged commit 7c3ff95 into evanw:master May 6, 2021
evanw added a commit that referenced this pull request May 6, 2021
@lucacasonato lucacasonato deleted the deno-bugfixes branch May 6, 2021 09:03
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