remove remaining Global() calls (outside of tests) (#7521)

This commit is contained in:
Chris
2017-09-27 11:52:34 -05:00
committed by Saturnino Abril
parent 1bd66589a2
commit 8c80cdde38
45 changed files with 207 additions and 222 deletions

View File

@@ -49,11 +49,11 @@ 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()
api4.Init(th.App, th.App.Srv.Router, false)
Init(th.App, th.App.Srv.Router)
wsapi.InitApi()
wsapi.Init(th.App, th.App.Srv.WebSocketRouter)
utils.EnableDebugLogForTest()
th.App.Srv.Store.MarkSystemRanUnitTests()