mirror of
https://github.com/simplex-chat/simplexmq.git
synced 2026-11-22 19:58:39 +00:00
* smp server: plan to deliver messages sent while a subscription is registered * tests: reproduce subscription races with SEND and DEL * smp server: move subscriber registration functions to top level * smp server: deliver messages sent while a subscription is registered * smp server: deliver later messages after SUB while a delivery waits * smp server: correct the subscription race plan and a comment * smp server: remove delivery thread state change and its test * smp server: remove PostgreSQL performance changes of SUB batches * smp server: record the split of the subscription race fix in the plan * smp server: link the split pull requests in the subscription race plan * smp server: shorten row locks of PostgreSQL SUB batches * smp server: read first messages of SUB batches without queue lookups * servers: omit database connection string from output, save stats first * smp server: remove the plan of the closed subscription race fix
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.