IntersectMBO / IntersectMBO/ouroboros-consensus

Install "uncaught exception" handler in tests

Open
#751 1 comment 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.