Merge pull request #2071 from element-hq/feature/bma/fixTests
Attempt to fix test on CI.
This commit is contained in:
commit
19edf067fa
2 changed files with 2 additions and 2 deletions
|
|
@ -71,7 +71,7 @@ class LogoutPresenterTest {
|
|||
moleculeFlow(RecompositionMode.Immediate) {
|
||||
presenter.present()
|
||||
}.test {
|
||||
skipItems(1)
|
||||
skipItems(3)
|
||||
val initialState = awaitItem()
|
||||
assertThat(initialState.isLastSession).isTrue()
|
||||
assertThat(initialState.backupUploadState).isEqualTo(BackupUploadState.Unknown)
|
||||
|
|
|
|||
|
|
@ -72,7 +72,7 @@ class FakeEncryptionService : EncryptionService {
|
|||
this.isLastDevice = isLastDevice
|
||||
}
|
||||
|
||||
override suspend fun isLastDevice(): Result<Boolean> {
|
||||
override suspend fun isLastDevice(): Result<Boolean> = simulateLongTask {
|
||||
return Result.success(isLastDevice)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue