From 7a5459ce08432b5cd07708e5fd77ebdb4c8137c5 Mon Sep 17 00:00:00 2001 From: James Hillyerd Date: Sat, 3 Nov 2018 19:06:25 -0700 Subject: [PATCH] test: Fix integation test server startup --- pkg/test/integration_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/test/integration_test.go b/pkg/test/integration_test.go index 8306bde..d08a2c1 100644 --- a/pkg/test/integration_test.go +++ b/pkg/test/integration_test.go @@ -168,9 +168,9 @@ func startServer() (func(), error) { addrPolicy := &policy.Addressing{Config: conf} mmanager := &message.StoreManager{AddrPolicy: addrPolicy, Store: store, Hub: msgHub} // Start HTTP server. - web.Initialize(conf, shutdownChan, mmanager, msgHub) + webui.SetupRoutes(web.Router.PathPrefix("/serve/").Subrouter()) rest.SetupRoutes(web.Router.PathPrefix("/api/").Subrouter()) - webui.SetupRoutes(web.Router) + web.Initialize(conf, shutdownChan, mmanager, msgHub) go web.Start(rootCtx) // Start SMTP server. smtpServer := smtp.NewServer(conf.SMTP, shutdownChan, mmanager, addrPolicy)