MM-57245: Bump up Go version to 1.21 (#26512)

* MM-57245: Bump up Go version to 1.21

https://mattermost.atlassian.net/browse/MM-57245
```release-note
NONE
```
Этот коммит содержится в:
Agniva De Sarker
2024-03-21 09:12:35 +05:30
коммит произвёл GitHub
родитель 1dc5c006f2
Коммит 5e851f708b
38 изменённых файлов: 1151 добавлений и 1142 удалений

Просмотреть файл

@@ -22,7 +22,7 @@ func (s *MmctlUnitTestSuite) TestImportListAvailableCmdF() {
s.client.
EXPECT().
ListImports(context.Background()).
ListImports(context.TODO()).
Return(mockImports, &model.Response{}, nil).
Times(1)
@@ -43,7 +43,7 @@ func (s *MmctlUnitTestSuite) TestImportListAvailableCmdF() {
s.client.
EXPECT().
ListImports(context.Background()).
ListImports(context.TODO()).
Return(mockImports, &model.Response{}, nil).
Times(1)
@@ -64,7 +64,7 @@ func (s *MmctlUnitTestSuite) TestImportListIncompleteCmdF() {
s.client.
EXPECT().
GetUploadsForUser(context.Background(), "me").
GetUploadsForUser(context.TODO(), "me").
Return(mockUploads, &model.Response{}, nil).
Times(1)
@@ -94,7 +94,7 @@ func (s *MmctlUnitTestSuite) TestImportListIncompleteCmdF() {
s.client.
EXPECT().
GetUploadsForUser(context.Background(), "me").
GetUploadsForUser(context.TODO(), "me").
Return(mockUploads, &model.Response{}, nil).
Times(1)
@@ -115,7 +115,7 @@ func (s *MmctlUnitTestSuite) TestImportJobShowCmdF() {
s.client.
EXPECT().
GetJob(context.Background(), jobID).
GetJob(context.TODO(), jobID).
Return(nil, &model.Response{StatusCode: http.StatusNotFound}, errors.New("not found")).
Times(1)
@@ -133,7 +133,7 @@ func (s *MmctlUnitTestSuite) TestImportJobShowCmdF() {
s.client.
EXPECT().
GetJob(context.Background(), mockJob.Id).
GetJob(context.TODO(), mockJob.Id).
Return(mockJob, &model.Response{}, nil).
Times(1)
@@ -158,7 +158,7 @@ func (s *MmctlUnitTestSuite) TestImportJobListCmdF() {
s.client.
EXPECT().
GetJobsByType(context.Background(), model.JobTypeImportProcess, 0, perPage).
GetJobsByType(context.TODO(), model.JobTypeImportProcess, 0, perPage).
Return(mockJobs, &model.Response{}, nil).
Times(1)
@@ -191,7 +191,7 @@ func (s *MmctlUnitTestSuite) TestImportJobListCmdF() {
s.client.
EXPECT().
GetJobsByType(context.Background(), model.JobTypeImportProcess, 0, perPage).
GetJobsByType(context.TODO(), model.JobTypeImportProcess, 0, perPage).
Return(mockJobs, &model.Response{}, nil).
Times(1)
@@ -215,7 +215,7 @@ func (s *MmctlUnitTestSuite) TestImportProcessCmdF() {
s.client.
EXPECT().
CreateJob(context.Background(), mockJob).
CreateJob(context.TODO(), mockJob).
Return(mockJob, &model.Response{}, nil).
Times(1)