Removes debug global error

This commit is contained in:
ericdecanini 2022-03-09 12:26:52 +01:00
parent ec57ff1b03
commit 70b5b9855a
2 changed files with 1 additions and 3 deletions

View file

@ -18,7 +18,6 @@ package org.matrix.android.sdk.internal.session.sync
import android.os.SystemClock import android.os.SystemClock
import okhttp3.ResponseBody import okhttp3.ResponseBody
import org.matrix.android.sdk.api.failure.GlobalError
import org.matrix.android.sdk.api.logger.LoggerTag import org.matrix.android.sdk.api.logger.LoggerTag
import org.matrix.android.sdk.api.session.Session import org.matrix.android.sdk.api.session.Session
import org.matrix.android.sdk.api.session.initsync.InitSyncStep import org.matrix.android.sdk.api.session.initsync.InitSyncStep
@ -152,7 +151,6 @@ internal class DefaultSyncTask @Inject constructor(
defaultSyncStatusService.setStatus(SyncStatusService.Status.IncrementalSyncIdle) defaultSyncStatusService.setStatus(SyncStatusService.Status.IncrementalSyncIdle)
val syncResponse = try { val syncResponse = try {
executeRequest(globalErrorReceiver) { executeRequest(globalErrorReceiver) {
globalErrorReceiver.handleGlobalError(GlobalError.InvalidToken(softLogout = true))
syncAPI.sync( syncAPI.sync(
params = requestParams, params = requestParams,
readTimeOut = readTimeOut readTimeOut = readTimeOut

View file

@ -30,7 +30,7 @@ class LoginTypeTest {
LoginType.fromValue(LoginType.UNKNOWN.value) shouldBeEqualTo LoginType.UNKNOWN LoginType.fromValue(LoginType.UNKNOWN.value) shouldBeEqualTo LoginType.UNKNOWN
} }
@Test // This test failing means an existing type has not been correctly added to fromValue @Test // The failure of this test means that an existing type has not been correctly added to fromValue
fun `given non-unknown type value, when getting type fromValue, then type is not UNKNOWN`() { fun `given non-unknown type value, when getting type fromValue, then type is not UNKNOWN`() {
val types = LoginType.values() val types = LoginType.values()