nim-chronos
nim-chronos copied to clipboard
tests not exception-safe
the unit test suite is not written in an exception safe way - this is problematic because:
- tests are often a good source of example code - if they provide a bad example, the unsafe code spreads
- failures in a single test cause transport not to be closed and subsequent tests to fail ("address in use") / give false negatives
example: https://github.com/status-im/nim-chronos/blob/e3ced62d4ba06b7ff638f6784e782046b1fadc70/tests/teststream.nim#L74