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) --- web/web_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'web/web_test.go') diff --git a/web/web_test.go b/web/web_test.go index 2bf92151f..ba47f831a 100644 --- a/web/web_test.go +++ b/web/web_test.go @@ -27,9 +27,9 @@ func Setup() *app.App { a.InitStores() a.Srv.Router = api.NewRouter() a.StartServer() - api4.InitApi(a.Srv.Router, false) - api.InitApi(a.Srv.Router) - InitWeb() + api4.Init(a, a.Srv.Router, false) + api3 := api.Init(a, a.Srv.Router) + Init(api3) URL = "http://localhost" + *utils.Cfg.ServiceSettings.ListenAddress ApiClient = model.NewClient(URL) -- cgit v1.2.3-1-g7c22