diff options
| author | Kalle Lindström <karl.lindstrom@mullvad.net> | 2024-11-07 16:38:19 +0100 |
|---|---|---|
| committer | David Göransson <david.goransson@mullvad.net> | 2024-11-12 14:33:04 +0100 |
| commit | 456a0bb7eab8920b5eda5440fdc68f598e390dcd (patch) | |
| tree | 69eb0ba8f2b2ba06d5547a668ecd3c166af6eddc /android/app/src/test | |
| parent | eb88e35d7b3c94ad95d4fac23f85e3400d0654bb (diff) | |
| download | mullvadvpn-456a0bb7eab8920b5eda5440fdc68f598e390dcd.tar.xz mullvadvpn-456a0bb7eab8920b5eda5440fdc68f598e390dcd.zip | |
Fix account expiry in app notif not resetting
Diffstat (limited to 'android/app/src/test')
| -rw-r--r-- | android/app/src/test/kotlin/net/mullvad/mullvadvpn/usecase/AccountExpiryInAppNotificationUseCaseTest.kt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/android/app/src/test/kotlin/net/mullvad/mullvadvpn/usecase/AccountExpiryInAppNotificationUseCaseTest.kt b/android/app/src/test/kotlin/net/mullvad/mullvadvpn/usecase/AccountExpiryInAppNotificationUseCaseTest.kt index 0749cc62b4..df337a5911 100644 --- a/android/app/src/test/kotlin/net/mullvad/mullvadvpn/usecase/AccountExpiryInAppNotificationUseCaseTest.kt +++ b/android/app/src/test/kotlin/net/mullvad/mullvadvpn/usecase/AccountExpiryInAppNotificationUseCaseTest.kt @@ -119,6 +119,10 @@ class AccountExpiryInAppNotificationUseCaseTest { advanceTimeBy(ACCOUNT_EXPIRY_IN_APP_NOTIFICATION_UPDATE_INTERVAL.millis) assertEquals(Duration.ZERO, getExpiryNotificationDuration(expectMostRecentItem())) expectNoEvents() + + // Make sure we reset the list of notifications emitted when new time is added + setExpiry(DateTime.now().plus(ACCOUNT_EXPIRY_CLOSE_TO_EXPIRY_THRESHOLD).plusDays(1)) + assertEquals(emptyList(), expectMostRecentItem()) } } |
