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

[fenix] For https://github.com/mozilla-mobile/fenix/issues/22488 - Fix intermittent test failure with InactiveTabsControllerTest

This commit is contained in:
Gabriel Luong 2021-11-24 13:38:40 -05:00 committed by mergify[bot]
parent 100d5372ee
commit 6b5ce4d387

View File

@ -14,6 +14,7 @@ import io.mockk.verify
import mozilla.components.browser.state.state.TabSessionState
import mozilla.components.browser.state.store.BrowserStore
import mozilla.components.browser.tabstray.TabsTray
import mozilla.components.support.test.libstate.ext.waitUntilIdle
import org.junit.Assert.assertEquals
import mozilla.components.browser.state.state.createTab as createTabState
import org.junit.Test
@ -47,6 +48,8 @@ class InactiveTabsControllerTest {
controller.updateCardExpansion(true)
appStore.waitUntilIdle()
verify { tray.updateTabs(capture(tabsSlot), any()) }
assertEquals(2, tabsSlot.captured.size)