Skip to content
Snippets Groups Projects
Unverified Commit f091c81a authored by Matthias Urhahn's avatar Matthias Urhahn Committed by GitHub
Browse files

Prevent UI scopes from canceling transactions (EXPOSUREAPP-2312) (#1093)


* Don't execute the transactions as part of any view scopes.
We don't want to cancel them if the viewscope is cleared.

This commit introduces distinct scopes for each transaction.

* Mock injection helper behavior on existing tests.

* Simplify to one CoroutineScope for all Transaction.
Switch context when awaiting the transaction codeblock to end,
otherwise a cancellation still affects us.

* Add test for timeout

* Remove unused code.

* Expand comment on unexpected test behavior

* Even without actual timeout, runBlockingTest causes flaky test behavior.

Co-authored-by: default avatarMatthias Urhahn <matthias.urhahn@sap.com>
Co-authored-by: default avatarJakob Möller <jakob.moeller@sap.com>
parent 2ba3ec0f
No related branches found
No related tags found
Loading
Showing
with 270 additions and 52 deletions
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment