Migrate store methods to use request.Context instead of context.Context (#24836)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
0d5a8b8841
Коммит
13c05a571f
@@ -709,7 +709,7 @@ func TestLeaveLastChannel(t *testing.T) {
|
||||
t.Run("Guest leaves not last channel", func(t *testing.T) {
|
||||
err = th.App.LeaveChannel(th.Context, townSquare.Id, guest.Id)
|
||||
require.Nil(t, err)
|
||||
_, err = th.App.GetTeamMember(th.BasicTeam.Id, guest.Id)
|
||||
_, err = th.App.GetTeamMember(th.Context, th.BasicTeam.Id, guest.Id)
|
||||
assert.Nil(t, err, "It should maintain the team membership")
|
||||
})
|
||||
|
||||
@@ -718,7 +718,7 @@ func TestLeaveLastChannel(t *testing.T) {
|
||||
assert.Nil(t, err, "It should allow to remove a guest user from the default channel")
|
||||
_, err = th.App.GetChannelMember(th.Context, th.BasicChannel.Id, guest.Id)
|
||||
assert.NotNil(t, err)
|
||||
_, err = th.App.GetTeamMember(th.BasicTeam.Id, guest.Id)
|
||||
_, err = th.App.GetTeamMember(th.Context, th.BasicTeam.Id, guest.Id)
|
||||
assert.Nil(t, err, "It should remove the team membership")
|
||||
})
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user