From 8d83e8db2f4e8ae1389ec7797935e3347b9930cc Mon Sep 17 00:00:00 2001 From: Benjamin Cooke Date: Tue, 7 Mar 2023 09:55:19 -0500 Subject: [PATCH] fixing test --- server/integrationtests/board_test.go | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/server/integrationtests/board_test.go b/server/integrationtests/board_test.go index a4d63b4ad..e1b7e7f29 100644 --- a/server/integrationtests/board_test.go +++ b/server/integrationtests/board_test.go @@ -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,