Minitest helper for failing tests when tasks end with unhandled exception #422
nickpoorman
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
If anyone knows a better way to do the following please let me know!
In case anyone else comes across this, I've found it useful to have minitest fail any time the 'Task may have ended with unhandled exception' message appears because it usually means I need to fix something.
So I use this little test helper that I enable that will fail the test when that happens. It's also been super useful for identifying and fixing
.async
calls that need to be called with.async(finished: false)
. See: #383 (comment)Beta Was this translation helpful? Give feedback.
All reactions