mirror of
https://github.com/simplex-chat/simplexmq.git
synced 2026-11-22 19:58:39 +00:00
* servers: prevent partial reads of metrics files * tests: compare metrics time with shouldNotReturn * servers: log metrics file errors instead of stopping * servers, tests: test metrics written while read and after a failed write * tests: retry failed tests outside the exception handler, so timeouts end them * servers: log metrics collection errors instead of stopping * servers: log errors of periodic tasks instead of stopping * servers: count expired files after deletion, read stats counts each period
Running tests with coverage
- Uncomment coverage sections in cabal.project file.
- Add
-fhpcto ghc-options of simplexmq-test in simplexmq.cabal file. - Disable (
xit) test "should subscribe to multiple (200) subscriptions with batching", enable (commentskip) the next test instead. - Run
cabal test. - Open generated coverage report in the browser.