[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 удалений

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

@@ -327,7 +327,7 @@ func TestOldImportChannel(t *testing.T) {
store := &mocks.Store{}
config := &model.Config{}
config.SetDefaults()
ctx := &request.Context{}
ctx := request.EmptyContext(nil)
ctx.SetLogger(mlog.CreateConsoleTestLogger(true, mlog.LvlDebug))
t.Run("No panic on direct channel", func(t *testing.T) {