From 4731b8f9b993536ed61dbc065e161e8994253f0d Mon Sep 17 00:00:00 2001 From: Chris Date: Tue, 12 Sep 2017 14:12:29 -0500 Subject: fix plugin test (#7436) * fix plugin test * ugh. global state * Fix plugin test * Fix TestDeleteChannel * Remove plugin config listener when shutting down --- app/apptestlib.go | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'app/apptestlib.go') 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 } -- cgit v1.2.3-1-g7c22