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

Refactor DispatcherProvider to improve testing coroutine timing (DEV) #2190


* Adjust DispatcherProvider interface to return type `CoroutineContext`.
This is a preamble to fix a few coroutine tests that require time advancement.
We need to be able to pass the TestCoroutineScope's context to classes under test.
This can now be done using CoroutineContext.asDispatcherProvider().

* Fix compile error in test

Co-authored-by: default avatarRalf Gehrer <ralfgehrer@users.noreply.github.com>
Co-authored-by: default avatarralfgehrer <mail@ralfgehrer.com>
parent 0b35d991
No related branches found
No related tags found
No related merge requests found
Showing
with 29 additions and 28 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