diff options
author | Chris <ccbrown112@gmail.com> | 2017-09-12 14:12:29 -0500 |
---|---|---|
committer | Joram Wilander <jwawilander@gmail.com> | 2017-09-12 15:12:29 -0400 |
commit | 4731b8f9b993536ed61dbc065e161e8994253f0d (patch) | |
tree | 140e7407ef793204dd94e1b58a725e836c75b2b5 /api | |
parent | b066b6df138e88e75cb40f1ec3e58fbd13e61909 (diff) | |
download | chat-4731b8f9b993536ed61dbc065e161e8994253f0d.tar.gz chat-4731b8f9b993536ed61dbc065e161e8994253f0d.tar.bz2 chat-4731b8f9b993536ed61dbc065e161e8994253f0d.zip |
fix plugin test (#7436)
* fix plugin test
* ugh. global state
* Fix plugin test
* Fix TestDeleteChannel
* Remove plugin config listener when shutting down
Diffstat (limited to 'api')
-rw-r--r-- | api/apitestlib.go | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/api/apitestlib.go b/api/apitestlib.go index 3f63f3ffc..276ff81e1 100644 --- a/api/apitestlib.go +++ b/api/apitestlib.go @@ -46,9 +46,6 @@ func setupTestHelper(enterprise bool) *TestHelper { *utils.Cfg.RateLimitSettings.Enable = false utils.Cfg.EmailSettings.SendEmailNotifications = true utils.DisableDebugLogForTest() - if enterprise { - utils.License().Features.SetDefaults() - } th.App.NewServer() th.App.InitStores() th.App.Srv.Router = NewRouter() @@ -63,6 +60,11 @@ func setupTestHelper(enterprise bool) *TestHelper { *utils.Cfg.TeamSettings.EnableOpenServer = true } + utils.SetIsLicensed(enterprise) + if enterprise { + utils.License().Features.SetDefaults() + } + return th } |