Hi everyone, I'm trying to test a ktor call, which...
# coroutines
t
Hi everyone, I'm trying to test a ktor call, which is a suspend function, in commonTest. Should I use
runBlocking
,
GlobalScope
, or what? I've tried kotlinx-coroutines-test, to use
runBlockingTest
, but apparently this library is only for JVM?
j
runBlocking
👍 1
d
There's a YouTrack issue for this somewhere...
b
In the meanwhile you could hack it like this