summaryrefslogtreecommitdiffhomepage
path: root/android/app
diff options
context:
space:
mode:
authorDavid Göransson <david.goransson@mullvad.net>2024-11-07 15:09:21 +0100
committerDavid Göransson <david.goransson@mullvad.net>2024-11-12 14:39:34 +0100
commitfa6cacdf9e25bce1efab9b5987bafeb3d7a3ba76 (patch)
treef58c01091e1a252f1465a7ce47341b177a21ce87 /android/app
parente1567cf4721b6d677196bb4523d1fa337c1efb24 (diff)
downloadmullvadvpn-fa6cacdf9e25bce1efab9b5987bafeb3d7a3ba76.tar.xz
mullvadvpn-fa6cacdf9e25bce1efab9b5987bafeb3d7a3ba76.zip
Fix incorrect parsing of auth failed error
Diffstat (limited to 'android/app')
-rw-r--r--android/app/src/test/kotlin/net/mullvad/mullvadvpn/usecase/OutOfTimeUseCaseTest.kt3
1 files changed, 2 insertions, 1 deletions
diff --git a/android/app/src/test/kotlin/net/mullvad/mullvadvpn/usecase/OutOfTimeUseCaseTest.kt b/android/app/src/test/kotlin/net/mullvad/mullvadvpn/usecase/OutOfTimeUseCaseTest.kt
index e12c2a1d88..0612555412 100644
--- a/android/app/src/test/kotlin/net/mullvad/mullvadvpn/usecase/OutOfTimeUseCaseTest.kt
+++ b/android/app/src/test/kotlin/net/mullvad/mullvadvpn/usecase/OutOfTimeUseCaseTest.kt
@@ -20,6 +20,7 @@ import kotlinx.coroutines.test.resetMain
import kotlinx.coroutines.test.runTest
import kotlinx.coroutines.test.setMain
import net.mullvad.mullvadvpn.lib.model.AccountData
+import net.mullvad.mullvadvpn.lib.model.AuthFailedError
import net.mullvad.mullvadvpn.lib.model.ErrorState
import net.mullvad.mullvadvpn.lib.model.ErrorStateCause
import net.mullvad.mullvadvpn.lib.model.TunnelState
@@ -74,7 +75,7 @@ class OutOfTimeUseCaseTest {
fun `tunnel is blocking because out of time should emit true`() =
scope.runTest {
// Arrange
- val errorStateCause = ErrorStateCause.AuthFailed("[EXPIRED_ACCOUNT]")
+ val errorStateCause = ErrorStateCause.AuthFailed(AuthFailedError.ExpiredAccount)
val tunnelStateError = TunnelState.Error(ErrorState(errorStateCause, true))
// Act, Assert