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
Performance improvement on DataStore only collects update notifications when it is observed. (b/267792241)
Note that this change might trigger UncompletedCoroutinesError in your tests if you are using the Coroutines testing library. Make sure you pass the TestScope.backgroundScope when initializing DataStore in your tests to avoid this issue.
Relevant logcat output
After waiting for 1m, there were active child jobs: ["coroutine#37":StandaloneCoroutine{Active}@1bbe97e2]. Use `TestScope.backgroundScope` to launch the coroutines that need to be cancelled when the test body finishes
kotlinx.coroutines.test.UncompletedCoroutinesError: After waiting for 1m, there were active child jobs: ["coroutine#37":StandaloneCoroutine{Active}@1bbe97e2]. Use `TestScope.backgroundScope` to launch the coroutines that need to be cancelled when the test body finishes
at app//kotlinx.coroutines.test.TestBuildersKt__TestBuildersKt$runTest$2$1$2.invokeSuspend$lambda$0(TestBuilders.kt:354)
at app//kotlinx.coroutines.InvokeOnCancelling.invoke(JobSupport.kt:1571)
at app//kotlinx.coroutines.JobSupport.notifyCancelling(JobSupport.kt:1604)
at app//kotlinx.coroutines.JobSupport.tryMakeCancelling(JobSupport.kt:826)
at app//kotlinx.coroutines.JobSupport.makeCancelling(JobSupport.kt:786)
at app//kotlinx.coroutines.JobSupport.cancelImpl$kotlinx_coroutines_core(JobSupport.kt:702)
at app//kotlinx.coroutines.JobSupport.cancelCoroutine(JobSupport.kt:689)
at app//kotlinx.coroutines.TimeoutCoroutine.run(Timeout.kt:156)
at app//kotlinx.coroutines.EventLoopImplBase$DelayedRunnableTask.run(EventLoop.common.kt:505)
at app//kotlinx.coroutines.EventLoopImplBase.processNextEvent(EventLoop.common.kt:263)
at app//kotlinx.coroutines.DefaultExecutor.run(DefaultExecutor.kt:105)
at [email protected]/java.lang.Thread.run(Thread.java:833)
Code of Conduct
I agree to follow this project's Code of Conduct
The text was updated successfully, but these errors were encountered:
There is also a badging change that was not applied, failing the build at a later step.
Nevermind, the badging file was changed because of some ordering rule that changed because of the updated DataStore dependency. It is now fixed in the same PR.
Is there an existing issue for this?
Is there a StackOverflow question about this issue?
What happened?
The following update broke unit tests:
The changelog mentions:
Relevant logcat output
Code of Conduct
The text was updated successfully, but these errors were encountered: