Hi guys. I trying to mock a method that returns co...
# mockk
s
Hi guys. I trying to mock a method that returns coroutine
Job
But I get this runtime exception
java.lang.IllegalArgumentException: proxied interface methods have incompatible >return types:
public abstract boolean kotlinx.coroutines.Job.cancel()
public abstract void kotlinx.coroutines.Job.cancel()
at java.lang.reflect.Proxy.validateReturnTypes(Proxy.java:328)
o
Is it android instrumented test?
s
yes
o
There is known issue
Hm, no exactly this one
Can you submit new issue on https://github.com/mockk/mockk/issues
s
I'll do that thank you