diff options
| author | Albin <albin@mullvad.net> | 2022-07-28 15:54:55 +0200 |
|---|---|---|
| committer | Albin <albin@mullvad.net> | 2022-07-29 13:01:20 +0200 |
| commit | 06cabcc24cefbf3789e782580defbb9cda1781c5 (patch) | |
| tree | 8c81cad8c9fcc494ad12975561a86cf27a9e916b /android/app/src/test | |
| parent | 28eaa95fbc912447b8ee172afdf7ac257999e396 (diff) | |
| download | mullvadvpn-06cabcc24cefbf3789e782580defbb9cda1781c5.tar.xz mullvadvpn-06cabcc24cefbf3789e782580defbb9cda1781c5.zip | |
Improve device repo list caching
Diffstat (limited to 'android/app/src/test')
| -rw-r--r-- | android/app/src/test/kotlin/net/mullvad/mullvadvpn/viewmodel/LoginViewModelTest.kt | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/android/app/src/test/kotlin/net/mullvad/mullvadvpn/viewmodel/LoginViewModelTest.kt b/android/app/src/test/kotlin/net/mullvad/mullvadvpn/viewmodel/LoginViewModelTest.kt index 4af15c0cee..c6ae770969 100644 --- a/android/app/src/test/kotlin/net/mullvad/mullvadvpn/viewmodel/LoginViewModelTest.kt +++ b/android/app/src/test/kotlin/net/mullvad/mullvadvpn/viewmodel/LoginViewModelTest.kt @@ -108,7 +108,14 @@ class LoginViewModelTest { @Test fun testLoginWithTooManyDevicesError() = runBlockingTest { - coEvery { mockedDeviceRepository.getDeviceList(any()) } returns DeviceListEvent.Available( + coEvery { + mockedDeviceRepository.refreshAndAwaitDeviceListWithTimeout( + any(), + any(), + any(), + any() + ) + } returns DeviceListEvent.Available( DUMMY_ACCOUNT_TOKEN, listOf() ) |
