Seems that relaxed mocking of suspend function doe...
# mockk
j
Seems that relaxed mocking of suspend function does not work. Is it expected? Am I missing something?
Copy code
class Foo {
    suspend fun download(): Int {
        return 1
    }
}

val mock = mockk<Foo>(relaxed = true)
val result = runBlocking { mock.download() }
assertEquals(0, result)
results into
class java.lang.Object cannot be cast to class java.lang.Number