MM-56565 Add filter to connectFakeWebSocket to fix flakiness (#25938)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
c4cc2db0ff
Коммит
21e82c4a8b
@@ -2736,9 +2736,11 @@ func TestPatchChannelMembersNotifyProps(t *testing.T) {
|
||||
th.AddUserToChannel(user1, channel2)
|
||||
th.AddUserToChannel(user2, channel1)
|
||||
|
||||
messages1, closeWS1 := connectFakeWebSocket(t, th, user1.Id, "")
|
||||
eventTypesFilter := []model.WebsocketEventType{model.WebsocketEventChannelMemberUpdated}
|
||||
|
||||
messages1, closeWS1 := connectFakeWebSocket(t, th, user1.Id, "", eventTypesFilter)
|
||||
defer closeWS1()
|
||||
messages2, closeWS2 := connectFakeWebSocket(t, th, user2.Id, "")
|
||||
messages2, closeWS2 := connectFakeWebSocket(t, th, user2.Id, "", eventTypesFilter)
|
||||
defer closeWS2()
|
||||
|
||||
_, appErr := th.App.PatchChannelMembersNotifyProps(th.Context, []*model.ChannelMemberIdentifier{
|
||||
|
||||
Ссылка в новой задаче
Block a user