gotoOla
01/27/2020, 1:40 PMprivate fun createMockedHttpClient(): HttpClient {
return HttpClient(MockEngine) {
engine {
addHandler { request ->
respond("hej")
}
}
}
}
and then I try to coVerify (a function from mockk) that calls were made towards the mock
coVerify(exactly = 10) { httpClient.post("http://localhost:8081") }
but what I get is
Missing calls inside verify { ... } block.gotoOla
01/27/2020, 1:57 PMcoVerify(exactly = 10) { httpClient.post("http://localhost:8081") { any() } }
I don't get that issue but I do get
Failed matching mocking signature for
left matchers: [any()]
io.mockk.MockKException: Failed matching mocking signature for