2
0
mirror of https://github.com/fork-maintainers/iceraven-browser synced 2024-11-03 23:15:31 +00:00

[fenix] Close https://github.com/mozilla-mobile/fenix/issues/20853: Fix intermittent failing test in HomeFragmentStoreTest

This commit is contained in:
Jonathan Almeida 2021-08-14 18:26:11 -04:00 committed by mergify[bot]
parent b9c243c0ec
commit 8c5bccf445

View File

@ -32,7 +32,6 @@ class HomeFragmentStoreTest {
private lateinit var accountManager: FxaAccountManager
private lateinit var onboarding: FenixOnboarding
private lateinit var browsingModeManager: BrowsingModeManager
private lateinit var dispatchModeChanges: (mode: Mode) -> Unit
private lateinit var currentMode: CurrentMode
private lateinit var homeFragmentState: HomeFragmentState
private lateinit var homeFragmentStore: HomeFragmentStore
@ -43,7 +42,6 @@ class HomeFragmentStoreTest {
accountManager = mockk(relaxed = true)
onboarding = mockk(relaxed = true)
browsingModeManager = mockk(relaxed = true)
dispatchModeChanges = mockk(relaxed = true)
every { context.components.backgroundServices.accountManager } returns accountManager
every { onboarding.userHasBeenOnboarded() } returns true
@ -52,9 +50,8 @@ class HomeFragmentStoreTest {
currentMode = CurrentMode(
context,
onboarding,
browsingModeManager,
dispatchModeChanges
)
browsingModeManager
) {}
homeFragmentState = HomeFragmentState(
collections = emptyList(),