<https://kotlin.github.io/kotlinx.coroutines/kotli...
# test
c
@samneirinck - Do I understand correctly that I need to add
delays
to my coroutines code block, to be able to test them? Do you use this library for testing?
s
haven’t used it myself, but wouldn’t add
delays
in your actual code. My assumption was that you could use
pauseDispatcher
, call your function in there, verify
isLoading.value == true
, and then advanceTime, and verify
isLoading.value == false