Files
simplexmq/tests
Evgeny @ SimpleX Chat 7ca1f4e508 agent: complete file uploads when the app leaves the foreground (#2010)
* agent: continue XFTP uploads started in foreground while suspending

* tests: verify XFTP upload stage of agent suspension

* docs: plan for XFTP uploads while suspending

* docs: revise plan for XFTP uploads while suspending

* docs: revise plan wording for XFTP uploads while suspending

* agent: exclude ended and stopped XFTP uploads from suspension wait

* tests: verify suspension wait for ended and stopped XFTP uploads

* docs: plan decisions for ended XFTP uploads while suspending

* agent: simplify tryBeginAgentOperation with orElse

* agent: rename upload wait functions by the conditions they check

* tests: verify database check and deleted rows at suspension start

* docs: plan residual case, conditions and names for XFTP suspension

* docs: plan tests for the remaining XFTP suspension paths

* tests: verify the remaining XFTP suspension paths

* docs: update plan line references and the query error test

* tests: foreground agent before checking the query error result

* docs: plan line references after merging master and stage diagrams

* agent: one check of the begun database operation when removing deleted or failed counted files

* agent: suspendAgent returns before the database query of counted files

* tests: closed database store tests excluded from PostgreSQL agent builds

* tests: suspension timeout test waits for the timeout and bounds SUSPENDED

* tests: one setup helper for suspension tests with a small sent file, one for the bounded SUSPENDED wait

* tests: suspendAgent returns while the agent database is in use

* docs: plan states the forked removal at suspension start, uncounted redirects, offline files and the changed tests

* docs: plan links the simplex-chat pull request

* agent: suspend timeout starts when suspendAgent returns, not after the database query of counted files

* docs: plan states the separate removal thread and the TTL cleanup interval
2026-11-07 15:23:45 +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.