Am I missing a trick to test Ktor (clients)? I'm u...
# kotest
p
Am I missing a trick to test Ktor (clients)? I'm using
MockEngine
(from ktor) in a
FunSpec
, and the code is definitely being run (I see the failure message being logged) but the actual test passes
stdout from the test
s
For a test to fail an exception must be thrown
I guess the client is swallowing it
do you have to do something like client.get("url") or whatever
🙏 1
p
Oh, yeah, duh. I'm deliberately accepting exceptions in the client code. Nevermind!
👍🏻 1