I added Koin to my project and now my unit tests a...
# koin
k
I added Koin to my project and now my unit tests are failing for not finding a class: kotlin/time/TimeSource$WithComparableMarks. This seems to be part of stdlib. I've added that to the testimplementation but am still getting that error. Ideas?
1
p
I don’t know the answer for your question. But I suspect that can be some divergence between your kotlin and koin version. Can you share, what version is using for them?
k
Sure. Kotlin is 1.7.20 and Koin is 3.4.3
I tried updating to a later Kotlin version and it turned into a mess
I do see that class in the stdlib for both Kotlin 1.7.x and 1.8.x
Just realized that the error is coming from my TestCoroutineRule and the UnconfinedTestDispatcher
p
So it is some conflict with coroutines and probably Kotlin, right?
k
So, we never had this issue before I added Koin. I'm assuming that it is using something newer. I'm tracing it down to the
atomic()
method?
Hmm. I did update kotlin coroutine version
Yep. That was it
p
Nice!