Hi I am trying to run a multiple jobs in a loop ex...
# coroutines
a
Hi I am trying to run a multiple jobs in a loop exactly three jobs. And I am using supervisor job because I don't want to cancel other jobs if any one fails. It's working fine. But when I am trying to test this using Mockk, I am not able to provide answers for the suspend functions, because there is additional argument continuation been added to suspend functions under the hood. I am using coEvery and coVerify to check the calls. Did anyone came across this. ?
e
That should work. Can you provide a code example? Who implements the suspending functions that you're trying to mock?
Note that there are some issues in the MockK repository concerning suspending functions
And for more specific MockK help, you could also try #mockk
a
Thanks Erick. I figured out the issue. Actually it's not realted to suspend functions. It was due to a another argument which is generated from a object. I tried to provide answers for those mockstatic objects and it's worked.
👍 1