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

[fenix] Issue https://github.com/mozilla-mobile/fenix/issues/21366: Speculative fix for failing test in TitleHeaderBindingTest

This commit is contained in:
Jonathan Almeida 2021-09-22 20:34:28 -04:00 committed by mergify[bot]
parent dc624719b5
commit d7c1238dac

View File

@ -31,10 +31,10 @@ class TitleHeaderBindingTest {
val store = BrowserStore()
val binding = TitleHeaderBinding(store) { result = it }
store.dispatch(TabListAction.AddTabAction(createTab("https://mozilla.org"))).joinBlocking()
binding.start()
store.dispatch(TabListAction.AddTabAction(createTab("https://mozilla.org"))).joinBlocking()
store.waitUntilIdle()
assertTrue(result)
@ -46,6 +46,8 @@ class TitleHeaderBindingTest {
val store = BrowserStore()
val binding = TitleHeaderBinding(store) { result = it }
binding.start()
store.dispatch(
TabListAction.AddTabAction(
createTab(
@ -58,8 +60,6 @@ class TitleHeaderBindingTest {
)
).joinBlocking()
binding.start()
store.waitUntilIdle()
assertFalse(result)
@ -75,10 +75,10 @@ class TitleHeaderBindingTest {
)
val binding = TitleHeaderBinding(store) { result = it }
store.dispatch(TabListAction.RemoveTabAction("123")).joinBlocking()
binding.start()
store.dispatch(TabListAction.RemoveTabAction("123")).joinBlocking()
store.waitUntilIdle()
assertFalse(result)