Skip to content
Snippets Groups Projects
Unverified Commit 10e152a0 authored by Philipp Nowak's avatar Philipp Nowak Committed by GitHub
Browse files

Reset the initial registration date on test removal correctly (EXPOSUREAPP-4484) (#2005) (#2024)

parent 957efe2c
No related branches found
No related tags found
No related merge requests found
......@@ -6,6 +6,6 @@ import de.rki.coronawarnapp.exception.reporting.ReportedException
class CwaSecurityException(cause: Throwable) : ReportedException(
ErrorCodes.CWA_SECURITY_PROBLEM.code,
"something went wrong during a critical part of the application ensuring security, please refer" +
"to the details for more information",
" to the details for more information",
cause
)
......@@ -198,6 +198,7 @@ class SubmissionRepository @Inject constructor(
LocalData.registrationToken(null)
LocalData.devicePairingSuccessfulTimestamp(0L)
LocalData.initialPollingForTestResultTimeStamp(0L)
LocalData.initialTestResultReceivedTimestamp(0L)
LocalData.isAllowedToSubmitDiagnosisKeys(false)
LocalData.isTestResultNotificationSent(false)
}
......
......@@ -97,6 +97,7 @@ class SubmissionRepositoryTest {
val submissionRepository = createInstance(scope = this)
every { LocalData.initialPollingForTestResultTimeStamp(any()) } just Runs
every { LocalData.initialTestResultReceivedTimestamp(any()) } just Runs
every { LocalData.isAllowedToSubmitDiagnosisKeys(any()) } just Runs
every { LocalData.isTestResultNotificationSent(any()) } just Runs
......@@ -106,6 +107,7 @@ class SubmissionRepositoryTest {
LocalData.registrationToken(null)
LocalData.devicePairingSuccessfulTimestamp(0L)
LocalData.initialPollingForTestResultTimeStamp(0L)
LocalData.initialTestResultReceivedTimestamp(0L)
LocalData.isAllowedToSubmitDiagnosisKeys(false)
LocalData.isTestResultNotificationSent(false)
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment