summaryrefslogtreecommitdiffhomepage
path: root/android/app/src/androidTest
diff options
context:
space:
mode:
authorKalle Lindström <karl.lindstrom@mullvad.net>2024-10-04 12:03:06 +0200
committerDavid Göransson <david.goransson@mullvad.net>2024-10-07 08:34:52 +0200
commitcd084f800055a344262e5100d24ebeb500860e83 (patch)
tree5b5d00686dd2e4241d99aefb1d80ab2035b8ff81 /android/app/src/androidTest
parent2912d6f8c9b535711a98a52e0c1285f4db6d6a48 (diff)
downloadmullvadvpn-cd084f800055a344262e5100d24ebeb500860e83.tar.xz
mullvadvpn-cd084f800055a344262e5100d24ebeb500860e83.zip
Use Duration instead of Period
Diffstat (limited to 'android/app/src/androidTest')
-rw-r--r--android/app/src/androidTest/kotlin/net/mullvad/mullvadvpn/compose/screen/ConnectScreenTest.kt10
1 files changed, 7 insertions, 3 deletions
diff --git a/android/app/src/androidTest/kotlin/net/mullvad/mullvadvpn/compose/screen/ConnectScreenTest.kt b/android/app/src/androidTest/kotlin/net/mullvad/mullvadvpn/compose/screen/ConnectScreenTest.kt
index ea0d79e319..f55e07c1cf 100644
--- a/android/app/src/androidTest/kotlin/net/mullvad/mullvadvpn/compose/screen/ConnectScreenTest.kt
+++ b/android/app/src/androidTest/kotlin/net/mullvad/mullvadvpn/compose/screen/ConnectScreenTest.kt
@@ -29,7 +29,7 @@ import net.mullvad.mullvadvpn.lib.model.TunnelState
import net.mullvad.mullvadvpn.repository.InAppNotification
import net.mullvad.mullvadvpn.ui.VersionInfo
import org.joda.time.DateTime
-import org.joda.time.Period
+import org.joda.time.Duration
import org.junit.jupiter.api.AfterEach
import org.junit.jupiter.api.BeforeEach
import org.junit.jupiter.api.Test
@@ -572,7 +572,9 @@ class ConnectScreenTest {
deviceName = "",
daysLeftUntilExpiry = null,
inAppNotification =
- InAppNotification.AccountExpiry(Period(DateTime.now(), expiryDate)),
+ InAppNotification.AccountExpiry(
+ Duration(DateTime.now(), expiryDate)
+ ),
isPlayBuild = false,
)
)
@@ -633,7 +635,9 @@ class ConnectScreenTest {
deviceName = "",
daysLeftUntilExpiry = null,
inAppNotification =
- InAppNotification.AccountExpiry(Period(DateTime.now(), expiryDate)),
+ InAppNotification.AccountExpiry(
+ Duration(DateTime.now(), expiryDate)
+ ),
isPlayBuild = false,
),
)