mengdd23
11/09/2023, 2:40 AMAfter 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.Dmitry Khalanskiy [JB]
11/09/2023, 8:42 AMmengdd23
11/10/2023, 1:09 AM