codelab-kotlin-coroutines icon indicating copy to clipboard operation
codelab-kotlin-coroutines copied to clipboard

Use of TestCoroutineContext in tests

Open etonotieno opened this issue 6 years ago • 3 comments

etonotieno avatar Oct 25 '18 12:10 etonotieno

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

etonotieno avatar Oct 25 '18 12:10 etonotieno

Thanks!

This looks promising and as https://github.com/Kotlin/kotlinx.coroutines/issues/541 we should integrate it.

objcode avatar Oct 29 '18 20:10 objcode

Also tracking https://github.com/Kotlin/kotlinx.coroutines/issues/810 to update tests to run outside of instrumentation.

objcode avatar Dec 07 '18 23:12 objcode