codelab-kotlin-coroutines
codelab-kotlin-coroutines copied to clipboard
Use of TestCoroutineContext in tests
In the tests that use coroutines with delay is it possible to use TestCoroutineContext so that there's no need to change the method signature to include the delay time. This approach can be used as we wait for integration with structured concurrency #410 and issue #541
Thanks!
This looks promising and as https://github.com/Kotlin/kotlinx.coroutines/issues/541 we should integrate it.
Also tracking https://github.com/Kotlin/kotlinx.coroutines/issues/810 to update tests to run outside of instrumentation.