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 ```
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
1dc5c006f2
Коммит
5e851f708b
@@ -24,7 +24,7 @@ func (s *MmctlUnitTestSuite) TestExportCreateCmdF() {
|
||||
|
||||
s.client.
|
||||
EXPECT().
|
||||
CreateJob(context.Background(), mockJob).
|
||||
CreateJob(context.TODO(), mockJob).
|
||||
Return(mockJob, &model.Response{}, nil).
|
||||
Times(1)
|
||||
|
||||
@@ -44,7 +44,7 @@ func (s *MmctlUnitTestSuite) TestExportCreateCmdF() {
|
||||
|
||||
s.client.
|
||||
EXPECT().
|
||||
CreateJob(context.Background(), mockJob).
|
||||
CreateJob(context.TODO(), mockJob).
|
||||
Return(mockJob, &model.Response{}, nil).
|
||||
Times(1)
|
||||
|
||||
@@ -66,7 +66,7 @@ func (s *MmctlUnitTestSuite) TestExportDeleteCmdF() {
|
||||
|
||||
s.client.
|
||||
EXPECT().
|
||||
DeleteExport(context.Background(), exportName).
|
||||
DeleteExport(context.TODO(), exportName).
|
||||
Return(&model.Response{StatusCode: http.StatusOK}, nil).
|
||||
Times(1)
|
||||
|
||||
@@ -84,7 +84,7 @@ func (s *MmctlUnitTestSuite) TestExportListCmdF() {
|
||||
|
||||
s.client.
|
||||
EXPECT().
|
||||
ListExports(context.Background()).
|
||||
ListExports(context.TODO()).
|
||||
Return(mockExports, &model.Response{}, nil).
|
||||
Times(1)
|
||||
|
||||
@@ -105,7 +105,7 @@ func (s *MmctlUnitTestSuite) TestExportListCmdF() {
|
||||
|
||||
s.client.
|
||||
EXPECT().
|
||||
ListExports(context.Background()).
|
||||
ListExports(context.TODO()).
|
||||
Return(mockExports, &model.Response{}, nil).
|
||||
Times(1)
|
||||
|
||||
|
||||
Ссылка в новой задаче
Block a user