IntersectMBO / IntersectMBO/ouroboros-consensus
Install "uncaught exception" handler in tests
Open
better-tests
- Dominant language
- Haskell
- Stars
- 67
- Forks
- 43
- Avg merge
- 5d 13h
- Merged PRs (30d)
- 43
Description
In input-output-hk/ouroboros-network#1136 (specifically, https://github.com/input-output-hk/ouroboros-network/pull/1136/commits/4762d321de39419e88926edd9c8ebc2018227ae2) the exception handler for new threads that catches any thrown top-level exceptions is removed. We should instead use `setUncaughtExceptionHandler`
* in the node/proxy, this should probably use the logging/tracing system
* for tests, we could install a handler that rethrows such exceptions to the main thread.
Contributor guide
Assessment
This issue has not been assessed yet.