summaryrefslogtreecommitdiffstats
path: root/app/apptestlib.go
diff options
context:
space:
mode:
authorChris <ccbrown112@gmail.com>2017-09-12 14:12:29 -0500
committerJoram Wilander <jwawilander@gmail.com>2017-09-12 15:12:29 -0400
commit4731b8f9b993536ed61dbc065e161e8994253f0d (patch)
tree140e7407ef793204dd94e1b58a725e836c75b2b5 /app/apptestlib.go
parentb066b6df138e88e75cb40f1ec3e58fbd13e61909 (diff)
downloadchat-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 'app/apptestlib.go')
-rw-r--r--app/apptestlib.go8
1 files changed, 5 insertions, 3 deletions
diff --git a/app/apptestlib.go b/app/apptestlib.go
index a640ff391..67a380f2d 100644
--- a/app/apptestlib.go
+++ b/app/apptestlib.go
@@ -33,9 +33,6 @@ func setupTestHelper(enterprise bool) *TestHelper {
*utils.Cfg.TeamSettings.MaxUsersPerTeam = 50
*utils.Cfg.RateLimitSettings.Enable = false
utils.DisableDebugLogForTest()
- if enterprise {
- utils.License().Features.SetDefaults()
- }
th.App.NewServer()
th.App.InitStores()
th.App.StartServer()
@@ -46,6 +43,11 @@ func setupTestHelper(enterprise bool) *TestHelper {
*utils.Cfg.TeamSettings.EnableOpenServer = true
}
+ utils.SetIsLicensed(enterprise)
+ if enterprise {
+ utils.License().Features.SetDefaults()
+ }
+
return th
}