Fixup: app_test: remove unused search engine initialization (#17718)

Automatic Merge
Этот коммит содержится в:
James Addison
2021-06-17 14:40:22 +01:00
коммит произвёл GitHub
родитель bbebd14296
Коммит 030543fed9

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

@@ -13,7 +13,6 @@ import (
"github.com/stretchr/testify/mock"
"github.com/mattermost/mattermost-server/v5/model"
"github.com/mattermost/mattermost-server/v5/services/searchengine/bleveengine"
"github.com/mattermost/mattermost-server/v5/store/storetest/mocks"
)
@@ -41,9 +40,6 @@ func init() {
func TestUnitUpdateConfig(t *testing.T) {
th := SetupWithStoreMock(t)
defer th.TearDown()
bleveEngine := bleveengine.NewBleveEngine(th.App.Config(), th.App.Srv().Jobs)
_ = bleveEngine.Start()
th.App.Srv().SearchEngine.RegisterBleveEngine(bleveEngine)
mockStore := th.App.Srv().Store.(*mocks.Store)
mockUserStore := mocks.UserStore{}