summaryrefslogtreecommitdiffhomepage
path: root/android/app/src/test
diff options
context:
space:
mode:
authorAlbin <albin@mullvad.net>2022-07-29 13:22:09 +0200
committerAlbin <albin@mullvad.net>2022-07-29 13:22:09 +0200
commit2f9262d344aa35367a0a3de726444092ad6cd70f (patch)
tree01543f2dc4fc2e171f594993b72a8ed2014ed617 /android/app/src/test
parentc111e5169c8bbecb02c7f56d71c2362d7aa2d624 (diff)
parent39747a24873944ec78c92a5eb6def8d33de2bb78 (diff)
downloadmullvadvpn-2f9262d344aa35367a0a3de726444092ad6cd70f.tar.xz
mullvadvpn-2f9262d344aa35367a0a3de726444092ad6cd70f.zip
Merge branch 'improve-device-list-error-handling'
Diffstat (limited to 'android/app/src/test')
-rw-r--r--android/app/src/test/kotlin/net/mullvad/mullvadvpn/viewmodel/LoginViewModelTest.kt9
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()
)