Hi, I’m getting this coroutine error only on Jenki...
# coroutines
r
Hi, I’m getting this coroutine error only on Jenkins CI and not locally. We are just testing some basic flow emissions.
Copy code
kotlinx.coroutines.test.UncompletedCoroutinesError: After waiting for 10s, the test coroutine is not completing
r
It was related. The test was taking almost 2 seconds to run locally with mockks. I rewrote it without mocks and now it’s taking 200ms
r
yea, probably whatever you were mocking was causing the coroutine not to complete
r
It was completing locally though.
r
Yea because , you were using actually instances . but in your test , perhaps it wasn't structured in a way for it to complete