Migrate store methods to use request.Context instead of context.Context (#24836)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
0d5a8b8841
Коммит
13c05a571f
@@ -425,7 +425,7 @@ func TestCreatePostWithOAuthClient(t *testing.T) {
|
||||
})
|
||||
require.Nil(t, appErr, "should create an OAuthApp")
|
||||
|
||||
session, appErr := th.App.CreateSession(&model.Session{
|
||||
session, appErr := th.App.CreateSession(th.Context, &model.Session{
|
||||
UserId: th.BasicUser.Id,
|
||||
Token: "token",
|
||||
IsOAuth: true,
|
||||
@@ -763,7 +763,7 @@ func TestCreatePostPublic(t *testing.T) {
|
||||
|
||||
th.App.UpdateUserRoles(th.Context, ruser.Id, model.SystemUserRoleId, false)
|
||||
th.App.JoinUserToTeam(th.Context, th.BasicTeam, ruser, "")
|
||||
th.App.UpdateTeamMemberRoles(th.BasicTeam.Id, ruser.Id, model.TeamUserRoleId+" "+model.TeamPostAllPublicRoleId)
|
||||
th.App.UpdateTeamMemberRoles(th.Context, th.BasicTeam.Id, ruser.Id, model.TeamUserRoleId+" "+model.TeamPostAllPublicRoleId)
|
||||
th.App.Srv().InvalidateAllCaches()
|
||||
|
||||
client.Login(context.Background(), user.Email, user.Password)
|
||||
@@ -816,7 +816,7 @@ func TestCreatePostAll(t *testing.T) {
|
||||
|
||||
th.App.UpdateUserRoles(th.Context, ruser.Id, model.SystemUserRoleId, false)
|
||||
th.App.JoinUserToTeam(th.Context, th.BasicTeam, ruser, "")
|
||||
th.App.UpdateTeamMemberRoles(th.BasicTeam.Id, ruser.Id, model.TeamUserRoleId+" "+model.TeamPostAllRoleId)
|
||||
th.App.UpdateTeamMemberRoles(th.Context, th.BasicTeam.Id, ruser.Id, model.TeamUserRoleId+" "+model.TeamPostAllRoleId)
|
||||
th.App.Srv().InvalidateAllCaches()
|
||||
|
||||
client.Login(context.Background(), user.Email, user.Password)
|
||||
|
||||
Ссылка в новой задаче
Block a user