diff --git a/WooCommerce/src/test/kotlin/com/woocommerce/android/ui/login/accountmismatch/AccountMismatchRepositoryTest.kt b/WooCommerce/src/test/kotlin/com/woocommerce/android/ui/login/accountmismatch/AccountMismatchRepositoryTest.kt index b148e6aa64e..6664c91343b 100644 --- a/WooCommerce/src/test/kotlin/com/woocommerce/android/ui/login/accountmismatch/AccountMismatchRepositoryTest.kt +++ b/WooCommerce/src/test/kotlin/com/woocommerce/android/ui/login/accountmismatch/AccountMismatchRepositoryTest.kt @@ -1,5 +1,6 @@ package com.woocommerce.android.ui.login.accountmismatch +import com.woocommerce.android.FakeDispatcher import com.woocommerce.android.ui.login.WPApiSiteRepository import com.woocommerce.android.viewmodel.BaseUnitTest import kotlinx.coroutines.ExperimentalCoroutinesApi @@ -21,11 +22,13 @@ class AccountMismatchRepositoryTest : BaseUnitTest() { private val wpApiSiteRepository = mock { onBlocking { fetchSite(any(), any(), any()) }.thenReturn(Result.success(SiteModel())) } + private val dispatcher = FakeDispatcher() private val sut = AccountMismatchRepository( jetpackStore = jetpackStore, siteStore = siteStore, - wpApiSiteRepository = wpApiSiteRepository + wpApiSiteRepository = wpApiSiteRepository, + dispatcher = dispatcher ) @Test