[MM-45769] Properly initialize the request.Context for imports and tests (#20659)

Этот коммит содержится в:
Tim Scheuermann
2022-07-18 11:58:06 +03:00
коммит произвёл GitHub
родитель ae482e6214
Коммит cb6cee1883
9 изменённых файлов: 13 добавлений и 16 удалений

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

@@ -11,7 +11,6 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"github.com/mattermost/mattermost-server/v6/app/request"
"github.com/mattermost/mattermost-server/v6/model"
"github.com/mattermost/mattermost-server/v6/plugin/plugintest/mock"
"github.com/mattermost/mattermost-server/v6/store/storetest/mocks"
@@ -43,7 +42,7 @@ func TestCloudKeyRequired(t *testing.T) {
c := &Context{
App: th.App,
AppContext: &request.Context{},
AppContext: th.Context,
}
c.CloudKeyRequired()