mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-03 16:10:00 +00:00
Rewrite the test, maybe the CI will be happier.
This commit is contained in:
+2
-1
@@ -548,8 +548,9 @@ class MessagesPresenterTest {
|
|||||||
moleculeFlow(RecompositionMode.Immediate) {
|
moleculeFlow(RecompositionMode.Immediate) {
|
||||||
presenter.present()
|
presenter.present()
|
||||||
}.test {
|
}.test {
|
||||||
val initialState = consumeItemsUntilTimeout().last()
|
val initialState = consumeItemsUntilPredicate { it.userHasPermissionToRedact }.last()
|
||||||
assertThat(initialState.userHasPermissionToRedact).isTrue()
|
assertThat(initialState.userHasPermissionToRedact).isTrue()
|
||||||
|
cancelAndIgnoreRemainingEvents()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user