Fix broken TestGetPost (#29228)
* Fix broken TestGetPost * Skip TestPromoteGuestToUser/websocket_update_user_event --------- Co-authored-by: Mattermost Build <build@mattermost.com>
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
4a92e9f9bf
Коммит
8c3f4a5818
@@ -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()
|
||||
|
||||
Ссылка в новой задаче
Block a user