1
0
mirror of https://github.com/mattermost/focalboard.git synced 2024-12-21 13:38:56 +02:00

fixing test

This commit is contained in:
Benjamin Cooke 2023-03-07 09:55:19 -05:00
parent 84614b8f4f
commit 8d83e8db2f

View File

@ -1610,6 +1610,15 @@ func TestUpdateMember(t *testing.T) {
board, err := th.Server.App().CreateBoard(newBoard, th.GetUser1().ID, true)
require.NoError(t, err)
newUser2Member := &model.BoardMember{
UserID: th.GetUser2().ID,
BoardID: board.ID,
Schemeadmin: true,
}
user2Member, err := th.Server.App().AddMemberToBoard(newUser2Member)
require.NoError(t, err)
require.NotNil(t, user2Member)
memberUpdate := &model.BoardMember{
UserID: th.GetUser1().ID,
BoardID: board.ID,