Skip to content

Commit a809ceb

Browse files
fix(ui-common): remove stale hide/unhide state assertions
HideChannel is no longer in group channel options, so the state doesn't change after hide/unhide actions. Remove the second awaitItem() calls that now time out.
1 parent 99ec46d commit a809ceb

1 file changed

Lines changed: 0 additions & 28 deletions

File tree

stream-chat-android-ui-common/src/test/kotlin/io/getstream/chat/android/ui/common/feature/channel/info/ChannelInfoViewControllerTest.kt

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -774,20 +774,6 @@ internal class ChannelInfoViewControllerTest {
774774
awaitItem(),
775775
)
776776
}
777-
778-
assertEquals(
779-
ChannelInfoViewState.Content(
780-
members = emptyMembers(),
781-
options = listOf(
782-
ChannelInfoViewState.Content.Option.RenameChannel(name = "", isReadOnly = true),
783-
ChannelInfoViewState.Content.Option.PinnedMessages,
784-
ChannelInfoViewState.Content.Option.MediaAttachments,
785-
ChannelInfoViewState.Content.Option.FilesAttachments,
786-
787-
),
788-
),
789-
awaitItem(),
790-
)
791777
}
792778
}
793779

@@ -852,20 +838,6 @@ internal class ChannelInfoViewControllerTest {
852838
fixture.givenUnhideChannel()
853839

854840
sut.onViewAction(ChannelInfoViewAction.UnhideChannelClick)
855-
856-
assertEquals(
857-
ChannelInfoViewState.Content(
858-
members = emptyMembers(),
859-
options = listOf(
860-
ChannelInfoViewState.Content.Option.RenameChannel(name = "", isReadOnly = true),
861-
ChannelInfoViewState.Content.Option.PinnedMessages,
862-
ChannelInfoViewState.Content.Option.MediaAttachments,
863-
ChannelInfoViewState.Content.Option.FilesAttachments,
864-
865-
),
866-
),
867-
awaitItem(),
868-
)
869841
}
870842
}
871843

0 commit comments

Comments
 (0)