diff options
Diffstat (limited to 'cmd/platform/test.go')
-rw-r--r-- | cmd/platform/test.go | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/cmd/platform/test.go b/cmd/platform/test.go index efc89a2b2..9b652931d 100644 --- a/cmd/platform/test.go +++ b/cmd/platform/test.go @@ -9,14 +9,15 @@ import ( "os" "os/exec" + "os/signal" + "syscall" + "github.com/mattermost/platform/api" "github.com/mattermost/platform/api4" "github.com/mattermost/platform/app" "github.com/mattermost/platform/utils" "github.com/mattermost/platform/wsapi" "github.com/spf13/cobra" - "os/signal" - "syscall" ) var testCmd = &cobra.Command{ @@ -56,9 +57,9 @@ func webClientTestsCmdF(cmd *cobra.Command, args []string) error { api.InitApi() wsapi.InitApi() setupClientTests() - app.StartServer() + app.Global().StartServer() runWebClientTests() - app.StopServer() + app.Global().StopServer() return nil } @@ -75,13 +76,13 @@ func serverForWebClientTestsCmdF(cmd *cobra.Command, args []string) error { api.InitApi() wsapi.InitApi() setupClientTests() - app.StartServer() + app.Global().StartServer() c := make(chan os.Signal) signal.Notify(c, os.Interrupt, syscall.SIGINT, syscall.SIGTERM) <-c - app.StopServer() + app.Global().StopServer() return nil } |