summaryrefslogtreecommitdiffstats
path: root/web/web_test.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 /web/web_test.go
parente0d5703f721aafef1b55747cd09629860e86bfb4 (diff)
downloadchat-dcf9e96a0b16530549168a7891ed8242663b5f28.tar.gz
chat-dcf9e96a0b16530549168a7891ed8242663b5f28.tar.bz2
chat-dcf9e96a0b16530549168a7891ed8242663b5f28.zip
remove global refs from api/api4 (#7496)
Diffstat (limited to 'web/web_test.go')
-rw-r--r--web/web_test.go6
1 files changed, 3 insertions, 3 deletions
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)