@here, I'm having some issues testing the followi...
# mockk
k
@here, I'm having some issues testing the following code
Copy code
fun sample() {
async { 
 val result = manager.someDbOperation().await()
 withContext(Dispatchers.Main) { 
 callback.onResult(result)
 }
}
And my test is as follows
Copy code
fun test() {

Subject.sample()


Verify {  runBlocking{
  manager.someDbOperation()
  callback.onResult()
 }
}
It's unable to switch the thread to Main and says
callback
was not called