* Fix broken TestGetPost

* Skip TestPromoteGuestToUser/websocket_update_user_event

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
Этот коммит содержится в:
Ben Schumacher
2024-11-13 05:43:12 +01:00
коммит произвёл GitHub
родитель 4a92e9f9bf
Коммит 8c3f4a5818
2 изменённых файлов: 6 добавлений и 0 удалений

Просмотреть файл

@@ -2805,6 +2805,11 @@ func TestGetPost(t *testing.T) {
_, err = client.RemoveUserFromChannel(context.Background(), th.BasicChannel.Id, th.BasicUser.Id)
require.NoError(t, err)
t.Cleanup(func() {
// Add the user back to the channel
_, _, err = client.AddChannelMember(context.Background(), th.BasicChannel.Id, th.BasicUser.Id)
require.NoError(t, err)
})
// Channel is public, should be able to read post
_, _, err = c.GetPost(context.Background(), th.BasicPost.Id, "")

Просмотреть файл

@@ -6147,6 +6147,7 @@ func TestPromoteGuestToUser(t *testing.T) {
}, "promote a guest to user")
t.Run("websocket update user event", func(t *testing.T) {
t.Skip("https://mattermost.atlassian.net/browse/MM-61736")
webSocketClient, err := th.CreateWebSocketClient()
assert.NoError(t, err)
defer webSocketClient.Close()