remove remaining Global() calls (outside of tests) (#7521)
Этот коммит содержится в:
коммит произвёл
Saturnino Abril
родитель
1bd66589a2
Коммит
8c80cdde38
@@ -61,10 +61,10 @@ func setupTestHelper(enterprise bool) *TestHelper {
|
||||
th.App.NewServer()
|
||||
th.App.InitStores()
|
||||
th.App.Srv.Router = NewRouter()
|
||||
wsapi.InitRouter()
|
||||
th.App.Srv.WebSocketRouter = th.App.NewWebSocketRouter()
|
||||
th.App.StartServer()
|
||||
Init(th.App, th.App.Srv.Router, true)
|
||||
wsapi.InitApi()
|
||||
wsapi.Init(th.App, th.App.Srv.WebSocketRouter)
|
||||
utils.EnableDebugLogForTest()
|
||||
th.App.Srv.Store.MarkSystemRanUnitTests()
|
||||
|
||||
|
||||
Ссылка в новой задаче
Block a user