mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-03 06:55:41 +00:00
Revert "Merge pull request #2071 from element-hq/feature/bma/fixTests"
This reverts commit19edf067fa, reversing changes made tofb766f5176.
This commit is contained in:
+1
-1
@@ -71,7 +71,7 @@ class LogoutPresenterTest {
|
|||||||
moleculeFlow(RecompositionMode.Immediate) {
|
moleculeFlow(RecompositionMode.Immediate) {
|
||||||
presenter.present()
|
presenter.present()
|
||||||
}.test {
|
}.test {
|
||||||
skipItems(3)
|
skipItems(1)
|
||||||
val initialState = awaitItem()
|
val initialState = awaitItem()
|
||||||
assertThat(initialState.isLastSession).isTrue()
|
assertThat(initialState.isLastSession).isTrue()
|
||||||
assertThat(initialState.backupUploadState).isEqualTo(BackupUploadState.Unknown)
|
assertThat(initialState.backupUploadState).isEqualTo(BackupUploadState.Unknown)
|
||||||
|
|||||||
+1
-1
@@ -72,7 +72,7 @@ class FakeEncryptionService : EncryptionService {
|
|||||||
this.isLastDevice = isLastDevice
|
this.isLastDevice = isLastDevice
|
||||||
}
|
}
|
||||||
|
|
||||||
override suspend fun isLastDevice(): Result<Boolean> = simulateLongTask {
|
override suspend fun isLastDevice(): Result<Boolean> {
|
||||||
return Result.success(isLastDevice)
|
return Result.success(isLastDevice)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user