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

No issue - post: mock profiler object in DefaultTabTrayControllerTest.

Without this line, the tests fail when running the full suite (but not
this test in isolation, for some reason).
This commit is contained in:
Michael Comella 2020-07-10 16:17:02 -07:00 committed by Michael Comella
parent 7319f77114
commit 9fa241fbb0

View File

@ -61,6 +61,7 @@ class DefaultTabTrayControllerTest {
every { activity.components.core.sessionManager } returns sessionManager
every { activity.components.core.tabCollectionStorage } returns tabCollectionStorage
every { activity.components.core.engine.profiler } returns mockk(relaxed = true)
every { sessionManager.sessionsOfType(private = true) } returns listOf(session).asSequence()
every { sessionManager.sessionsOfType(private = false) } returns listOf(nonPrivateSession).asSequence()
every { sessionManager.createSessionSnapshot(any()) } returns SessionManager.Snapshot.Item(