-
-
Notifications
You must be signed in to change notification settings - Fork 106
Fail tests that leak pipes #15
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
Comments
Hi, could you please give an example piece of code that causes this behavior? This is for understanding the problem better. Thanks in advance. |
What you need is:
In these cases nextest will wait around for the server process to exit rather than marking the test as LEAK and moving on. |
I've run into this issue as well. Strangely enough, passing I also tried adding this to my
...but it still doesn't terminate the tests at all. (again, unless running with This leads to an annoying Heisenbug where attempting to debug it, by passing |
Thanks for the further report. I agree that this should be a priority to fix given that even terminate-after isn't enough. Will look into it really soon. |
I started playing around with how to do this -- it involves switching to an async executor so that we can select on timeouts and pipe reads at the same time, which I'm doing in #359. |
@Bauxitedev this is now out as part of cargo-nextest 0.9.27. |
It is possible to write a test that ends up leaking a pipe (e.g. creates a process but doesn't terminate it). Currently, the test runner hangs on encountering such a test.
Instead, we should figure out a way to:
LEAK
message or similarThe text was updated successfully, but these errors were encountered: