mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-03 16:10:00 +00:00
TimelineControllerTest: try removing flakiness of one test
This commit is contained in:
+4
-1
@@ -172,8 +172,11 @@ class TimelineControllerTest {
|
|||||||
)
|
)
|
||||||
matrixRoom.givenTimelineFocusedOnEventResult(Result.success(detachedTimeline))
|
matrixRoom.givenTimelineFocusedOnEventResult(Result.success(detachedTimeline))
|
||||||
val sut = TimelineController(matrixRoom)
|
val sut = TimelineController(matrixRoom)
|
||||||
sut.focusOnEvent(AN_EVENT_ID)
|
|
||||||
sut.activeTimelineFlow().test {
|
sut.activeTimelineFlow().test {
|
||||||
|
awaitItem().also { state ->
|
||||||
|
assertThat(state).isEqualTo(liveTimeline)
|
||||||
|
}
|
||||||
|
sut.focusOnEvent(AN_EVENT_ID)
|
||||||
awaitItem().also { state ->
|
awaitItem().also { state ->
|
||||||
assertThat(state).isEqualTo(detachedTimeline)
|
assertThat(state).isEqualTo(detachedTimeline)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user