mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2024-12-27 11:28:33 +03:00
Removes debug global error
This commit is contained in:
parent
ec57ff1b03
commit
70b5b9855a
2 changed files with 1 additions and 3 deletions
|
@ -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
|
||||||
|
|
|
@ -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()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue