mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-03-05 08:47:10 +00:00
Move story work to background thread.
This commit is contained in:
committed by
Greyson Parrelli
parent
ee488ea0b8
commit
1ff6169795
@@ -1,6 +1,7 @@
|
||||
package org.thoughtcrime.securesms.stories.viewer.page
|
||||
|
||||
import android.app.Application
|
||||
import io.reactivex.rxjava3.android.plugins.RxAndroidPlugins
|
||||
import io.reactivex.rxjava3.core.Completable
|
||||
import io.reactivex.rxjava3.core.Observable
|
||||
import io.reactivex.rxjava3.plugins.RxJavaPlugins
|
||||
@@ -28,9 +29,14 @@ class StoryViewerPageViewModelTest {
|
||||
|
||||
@Before
|
||||
fun setUp() {
|
||||
RxJavaPlugins.setInitIoSchedulerHandler { testScheduler }
|
||||
RxJavaPlugins.setIoSchedulerHandler { testScheduler }
|
||||
|
||||
RxJavaPlugins.setInitComputationSchedulerHandler { testScheduler }
|
||||
RxJavaPlugins.setComputationSchedulerHandler { testScheduler }
|
||||
|
||||
RxAndroidPlugins.setMainThreadSchedulerHandler { testScheduler }
|
||||
|
||||
whenever(repository.forceDownload(any())).thenReturn(Completable.complete())
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user