Hi, I’m trying to test some ktor client code that ...
# ktor
m
Hi, I’m trying to test some ktor client code that uses the HttpTimeout question, but it doesn’t seem possible, In my code I have a client with the HttpTimeout feature installed. When running the tests, I create an HttpClient with a MockEngine. If I try to install the HttpTimeout feature in there I get a
Engine doesn’t support io.ktor.client.features.HttpTimeout$Feature@5c8a5ca9
, if I don’t install it I get another error:
Consider installing io.ktor.client.features.HttpTimeout$Feature@157a2816 feature because the request requires it to be installed
Isn’t there any workaround?
you know, other that
mocking
the httpclient for god ?
r
Hi, please file an issue to youtrack https://youtrack.jetbrains.com/newIssue?project=KTOR
m
will do, thanks