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

after block of with_mock isn't guaranteed to run if linked process exits #56

Open
spscream opened this issue Dec 7, 2016 · 1 comment

Comments

@spscream
Copy link
Contributor

spscream commented Dec 7, 2016

If process linked with test failed for some reason after block of with_mock macro isn't guaranteed to run and mocks isn't unloaded correctly, since if linked process exits test process will also exit and after isn't executed.

Here is some related thread: https://groups.google.com/forum/#!msg/elixir-lang-core/NWvFwUWo2QQ/VCLAzwCVBgAJ

May be replace after block with ExUnit.Callbacks.on_exit ?

@jjh42
Copy link
Owner

jjh42 commented Dec 26, 2016

I don't have much time to work on this anymore, but I'm accepting patches.

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

No branches or pull requests

2 participants