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:
parent
dc624719b5
commit
d7c1238dac
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user