-
-
Notifications
You must be signed in to change notification settings - Fork 95
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
Spinner causes hang #405
Comments
I'm really sorry for you having had a bad experience: you're right in that the spinner sometimes causes hangs. It's somewhere here https://github.com/haf/expecto/blob/master/Expecto/Logging.fs#L741 and expecto/Expecto/Expecto.Impl.fs Lines 736 to 755 in 8fb043f
I have a WIP rewrite of this — but unfortunately I haven't been able to finish it due to lack of time. PR:s welcome. |
No worries, it happens! Perhaps the spinner should be disabled by default for now? |
…ut (-debug) and avoid locking/hanging issues that occur when the debugger is attached by sequencing tests and turning off the spinner. (See haf/expecto#405 - not a proven cause, but might be related.)
I've been trying to debug some test hangs for a couple of days. After commenting out nearly all my code, I came to a startling and frustrating realization: it's the test framework that's hanging.
To test this, I turned on
--no-spinner
and ran my tests in a loop overnight. No hang. Without--no-spinner
, my test suite of 216 tests will hang about 20% of the time.This occurs on 9.0.2 (latest on nuget) as well as on master (I used the line
github haf/expecto:8fb043f1de5c847979c4ccb2fa7c14696bfafe55
in my paket.dependencies).The code is here if that's helpful: https://github.com/darklang/dark/blob/paul/more-fscheck/fsharp-backend/tests/Tests/Tests.fs
The text was updated successfully, but these errors were encountered: