Hi, is anyone meeting the same issue: ```After wai...
# coroutines
m
Hi, is anyone meeting the same issue:
Copy code
After waiting for 10s, the test coroutine is not completing
kotlinx.coroutines.test.UncompletedCoroutinesError: After waiting for 10s, the test coroutine is not completing
It only happens when running all tests together, using
./gradlew testDebugUnitTest
When running single test class file in IDE, it works all good. It feels like the tests are running in parallel, and
runTest
will check all the coroutines to be finished when each test ends.
d
Maybe you're encountering this: https://github.com/Kotlin/kotlinx.coroutines/issues/3800 When run in parallel, tests run a bit longer, potentially triggering a timeout. Do you use mockk, by any chance?
👀 1
m
yes, we are using mockk
324 Views