test: de-poison unit suite — drop static Dispatchers mocks, kill leaked WS timers (#833)

Co-authored-by: M57 <hy4ri@users.noreply.github.com>
This commit is contained in:
M57
2026-08-07 04:18:14 +03:00
committed by GitHub
co-authored by M57
parent fe79ff42b4
commit 4645a2b6e7
8 changed files with 51 additions and 33 deletions
@@ -35,11 +35,6 @@ class ConnectViewModelTest {
@Before
fun setUp() {
Dispatchers.setMain(testDispatcher)
val testMainDispatcher = Dispatchers.Main
mockkStatic(Dispatchers::class)
every { Dispatchers.IO } returns testDispatcher
every { Dispatchers.Main } returns testMainDispatcher
mockkObject(AuthManager)
mockkObject(ApiClient)
mockkStatic(android.util.Base64::class)