I’m excited that http-client-mock went multiplatfo...
# ktor
r
I’m excited that http-client-mock went multiplatform, but I can’t make it work in my ios tests. Instead it just hangs forever. See sample repo here: https://github.com/russhwolf/ktor-demo, and specifically this test when running on iOS https://github.com/russhwolf/ktor-demo/blob/master/app/src/commonTest/kotlin/sample/KtorClientTest.kt
t
@e5l should it work already on native with runBlocking?
🚫 1
r
@e5l is it possible to support that use-case? One of the biggest utilities of a mock client in my mind is to facilitate testing. If not
runBlocking
is there another way to do it?
e
We considering to ship such utilities with
MockEngine
in future. Could you file an issue to track the progress? 🙂
r
I'll do some experimenting with
XCTestExpectation
when I get a chance (hopefully tonight after work). In the meantime here's https://github.com/ktorio/ktor/issues/731
t
AFAIK you cannot use
XCTestExpectation
directly from kotlin anyway