Skip to content
This repository has been archived by the owner on Jun 20, 2023. It is now read-only.

EOL: Update Date (EXPOSUREAPP-14886) #5882

Merged
merged 1 commit into from
Mar 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class EolSetting @Inject constructor(
runCatching {
ZonedDateTime.parse(prefs[EOL_DATE_TIME])
}.getOrElse {
ZonedDateTime.parse("2023-06-01T00:00:00+02:00")
ZonedDateTime.parse("2023-05-01T00:00:00+02:00")
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ class AppEolTest : BaseTest() {
coEvery { enfClient.disableTracingIfEnabled() } returns false
coEvery { debugLogger.stop() } just Runs

every { eolSetting.eolDateTime } returns flowOf(ZonedDateTime.parse("2023-06-01T00:00:00+02:00"))
every { eolSetting.eolDateTime } returns flowOf(ZonedDateTime.parse("2023-05-01T00:00:00+02:00"))
every { eolSetting.isLoggerAllowed } returns flowOf(false)
every { alarmManager.cancel(any<PendingIntent>()) } just Runs
every { workManager.cancelAllWork() } returns mockk()
Expand Down Expand Up @@ -80,7 +80,7 @@ class AppEolTest : BaseTest() {

@Test
fun `Eol happened`() = runTest2 {
every { timeStamper.nowZonedDateTime } returns ZonedDateTime.parse("2023-06-01T00:00:00+02:00")
every { timeStamper.nowZonedDateTime } returns ZonedDateTime.parse("2023-05-01T00:00:00+02:00")
instance(this).isEol.first() shouldBe true
coVerify {
workManager.cancelAllWork()
Expand Down