h
-.kt
o
Not sure 100% in this exact example, but join may be skipped in favour of coVerify(timeout = 500) { ... }
h
yes it is not exactly the same code. I prefer joins instead of giving timeouts.
k
@Hadi Tok, thanks for your response. Is there any way to test that without returning a deferred value?
h
see Oleksiy’s answer below my answer.
k
I tried that, but it was still failing with the same error
h
callback.onResult(result)
is called with different parameters I think then
callback.onResult()
so it should fail.
k
Solved the thread switching issue by using Coroutine scope provider