Join Slack
Powered by
Is CIO engine main in ktor 2.0.1 something to be a...
# ktor
d
dodalovic
05/10/2022, 3:28 PM
Is CIO engine main in ktor 2.0.1 something to be avoided
e
e5l
05/10/2022, 3:31 PM
Hi! Nope, CIO just allows to configure different set of params
d
dodalovic
05/10/2022, 3:32 PM
I've opened a ticket
https://youtrack.jetbrains.com/issue/KTOR-4299/ktor-2-0-1-externalServices-not-working-in-tests
I'm wondering if my last comment is correct or plain wrong
e
e5l
05/10/2022, 3:38 PM
It looks like you’re trying to use regular
HttpClient(CIO)
with mock server.
e5l
05/10/2022, 3:39 PM
Could you try creating mock client for tests? You can check here how to make it:
https://ktor.io/docs/testing.html#configure-client
2
Views
Open in Slack
Previous
Next