You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since TestCoroutineDispatcher is stateful in order to keep track of executing coroutines, it is important to ensure that cleanupTestCoroutines is called after every test case.
In documentation example for kotlin-coroutines-test about
TestCoroutineDispatcher
there istestScope
property which doesn't exist.https://github.com/Kotlin/kotlinx.coroutines/blame/master/kotlinx-coroutines-test/README.md#L343
Also, in text
link to
cleanupTestCoroutines
function is invalid. (https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-test/kotlinx.coroutines.test/-test-coroutine-dispatcher/cleanup-test-coroutines.html)The text was updated successfully, but these errors were encountered: