Migrate store methods to use request.Context instead of context.Context (#24836)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
0d5a8b8841
Коммит
13c05a571f
@@ -182,7 +182,7 @@ func buildExportCmdF(format string) func(command *cobra.Command, args []string)
|
||||
return errors.New("message export feature not available")
|
||||
}
|
||||
|
||||
warningsCount, appErr := a.MessageExport().RunExport(format, startTime, limit)
|
||||
warningsCount, appErr := a.MessageExport().RunExport(request.EmptyContext(a.Log()), format, startTime, limit)
|
||||
if appErr != nil {
|
||||
return appErr
|
||||
}
|
||||
|
||||
@@ -426,7 +426,7 @@ func (s *MmctlE2ETestSuite) TestBotCreateCmdF() {
|
||||
token, ok := printer.GetLines()[1].(*model.UserAccessToken)
|
||||
s.Require().True(ok)
|
||||
defer func() {
|
||||
err := s.th.App.RevokeUserAccessToken(token)
|
||||
err := s.th.App.RevokeUserAccessToken(s.th.Context, token)
|
||||
s.Require().Nil(err)
|
||||
}()
|
||||
s.Require().Empty(printer.GetErrorLines())
|
||||
|
||||
Ссылка в новой задаче
Block a user