Ran
02/21/2021, 3:24 AMkotlinx-coroutines-test
library to test my coroutines code. But after I used TestCoroutineDispatcher
to mock the dispatcher, the coroutine resumed continually until throw an exception with the message:
kotlinx.coroutines.CoroutinesInternalError: Fatal exception in coroutines machinery for DispatchedContinuation[TestCoroutineDispatcher[currentTime=0ms, queued=0], Continuation at xxx.viewmodel.CarListViewModel$loadCars$1.invokeSuspend(CarListViewModel.kt)@1da6ee17]. Please read KDoc to 'handleFatalException' method and report this incident to maintainers
You can find the specific code at https://youtrack.jetbrains.com/issue/KT-45088.louiscad
02/21/2021, 8:00 AMRan
02/22/2021, 1:30 AM