I am writing a test for a method whose implementat...
# arrow
s
I am writing a test for a method whose implementation starts with
parTupledN
, it works if i use
runBlocking
to run the the test but not with
runBlockingTest
. Would be nice if its made possible.
s
Both methods are from KotlinX Coroutines, and Arrow Fx Coroutines is build on Kotlin Std. I'm not 100% sure how the dispatchers in KotlinX work, but possible they're thightly coupled to the implementation of KotlinX meaning that their testing support will not work with Arrow Fx Coroutines. So
runBlockingTest
cannot work.
runBlocking
however spins up an
EventLoop
to not require a default
CoroutineContext
like
Enviroment
has.
👍 1
s
Okay. Thank you.