Files
simplexmq/tests
Evgeny @ SimpleX Chat 99d84f7350 servers: write metrics atomically, log periodic task errors (#2061)
* 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
2026-11-13 10:25:41 +00:00
..
2026-05-21 14:14:03 +01:00

Running tests with coverage

  1. Uncomment coverage sections in cabal.project file.
  2. Add -fhpc to ghc-options of simplexmq-test in simplexmq.cabal file.
  3. Disable (xit) test "should subscribe to multiple (200) subscriptions with batching", enable (comment skip) the next test instead.
  4. Run cabal test.
  5. Open generated coverage report in the browser.