Attempt to fix test on CI.

The test is failing on CI with this error:
expected instance of: io.element.android.libraries.architecture.Async$Success
but was instance of : io.element.android.libraries.architecture.Async$Loading
with value          : Loading(prevData=null)
This commit is contained in:
Benoit Marty 2023-12-20 09:15:50 +01:00
parent bd53b9c5b9
commit 139f5cdf72

View file

@ -145,7 +145,7 @@ class LogoutPresenterTest {
val loadingState = awaitItem()
assertThat(loadingState.showConfirmationDialog).isFalse()
assertThat(loadingState.logoutAction).isInstanceOf(Async.Loading::class.java)
val successState = awaitItem()
val successState = awaitLastSequentialItem()
assertThat(successState.logoutAction).isInstanceOf(Async.Success::class.java)
}
}