Okay, I've removed the UI context and that error w...
# coroutines
j
Okay, I've removed the UI context and that error went away, but now I have a new problem. I am doing a
postValue(...)
call on a
LiveData
object inside a
launch
method and I'm getting
Method getMainLooper in android.os.Looper not mocked.
even though I am using
InstantTaskExecutorRule
on the test class. I think this is because
launch
creates an anonymous class, right? And that
InstantTaskExecutorRule
is not set in that class? Or am I way off base?