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
Erik
08/03/2021, 4:09 AM
That should work. Can you provide a code example? Who implements the suspending functions that you're trying to mock?
Erik
08/03/2021, 4:11 AM
Note that there are some issues in the MockK repository concerning suspending functions
Erik
08/03/2021, 4:12 AM
And for more specific MockK help, you could also try #mockk
a
Anoop Gopalakrishnan
08/03/2021, 10:50 PM
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.