From dcf9e96a0b16530549168a7891ed8242663b5f28 Mon Sep 17 00:00:00 2001 From: Chris Date: Fri, 22 Sep 2017 12:54:27 -0500 Subject: remove global refs from api/api4 (#7496) --- api4/apitestlib.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'api4/apitestlib.go') diff --git a/api4/apitestlib.go b/api4/apitestlib.go index 9538eb99c..7b5230014 100644 --- a/api4/apitestlib.go +++ b/api4/apitestlib.go @@ -63,7 +63,7 @@ func setupTestHelper(enterprise bool) *TestHelper { th.App.Srv.Router = NewRouter() wsapi.InitRouter() th.App.StartServer() - InitApi(th.App.Srv.Router, true) + Init(th.App, th.App.Srv.Router, true) wsapi.InitApi() utils.EnableDebugLogForTest() th.App.Srv.Store.MarkSystemRanUnitTests() -- cgit v1.2.3-1-g7c22