MM-45534: Fix flaky TestCreateGroupChannel (#20781)
The returned elements weren't in a specific order. Therefore, we need to perform an order insensitive match. https://mattermost.atlassian.net/browse/MM-45534 ```release-note NONE ```
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
236716f9c7
Коммит
b826421716
@@ -569,7 +569,7 @@ func TestCreateGroupChannel(t *testing.T) {
|
||||
require.Equal(t, rgc.Id, rgc2.Id, "should have returned existing channel")
|
||||
|
||||
m2, _ := th.App.GetChannelMembersPage(th.Context, rgc2.Id, 0, 10)
|
||||
require.Equal(t, m, m2)
|
||||
require.ElementsMatch(t, m, m2)
|
||||
|
||||
_, resp, err = client.CreateGroupChannel([]string{user2.Id})
|
||||
require.Error(t, err)
|
||||
|
||||
Ссылка в новой задаче
Block a user