Does ktor 2's `testApplication` work with kotest? ...
# ktor
j
Does ktor 2's
testApplication
work with kotest? I'm trying to use it but my tests are hanging.
👌 1
s
It's working fine for me
j
Is there example code I can look at somewhere?
j
Aha, you have to do that
testApplication
flavor your have in that file?
Or is that just an optimization as it says?
I never see the inside of my
should
blocks getting called
s
That first file creates some syntactic sugar, so I don't have to repeat the
testApplication
setup everywhere
So it's calling
testApplication
in every test
j
That makes sense. Yes, I needed your variant
testApplication
to remove the
runBlocking
for it to work with kotest.
Thank you!
134 Views