summaryrefslogtreecommitdiffstats
path: root/api/apitestlib.go
diff options
context:
space:
mode:
authorChris <ccbrown112@gmail.com>2017-09-22 12:54:27 -0500
committerHarrison Healey <harrisonmhealey@gmail.com>2017-09-22 13:54:27 -0400
commitdcf9e96a0b16530549168a7891ed8242663b5f28 (patch)
tree344255f0abbe1bd207e2f2ab864d245e240f4eeb /api/apitestlib.go
parente0d5703f721aafef1b55747cd09629860e86bfb4 (diff)
downloadchat-dcf9e96a0b16530549168a7891ed8242663b5f28.tar.gz
chat-dcf9e96a0b16530549168a7891ed8242663b5f28.tar.bz2
chat-dcf9e96a0b16530549168a7891ed8242663b5f28.zip
remove global refs from api/api4 (#7496)
Diffstat (limited to 'api/apitestlib.go')
-rw-r--r--api/apitestlib.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/api/apitestlib.go b/api/apitestlib.go
index 276ff81e1..8504748e1 100644
--- a/api/apitestlib.go
+++ b/api/apitestlib.go
@@ -51,8 +51,8 @@ func setupTestHelper(enterprise bool) *TestHelper {
th.App.Srv.Router = NewRouter()
wsapi.InitRouter()
th.App.StartServer()
- api4.InitApi(th.App.Srv.Router, false)
- InitApi(th.App.Srv.Router)
+ api4.Init(th.App, th.App.Srv.Router, false)
+ Init(th.App, th.App.Srv.Router)
wsapi.InitApi()
utils.EnableDebugLogForTest()
th.App.Srv.Store.MarkSystemRanUnitTests()