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 /api4/channel_test.go | |
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 'api4/channel_test.go')
-rw-r--r-- | api4/channel_test.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/api4/channel_test.go b/api4/channel_test.go index 57b760178..7237eb47a 100644 --- a/api4/channel_test.go +++ b/api4/channel_test.go @@ -876,6 +876,8 @@ func TestDeleteChannel(t *testing.T) { _, resp = th.SystemAdminClient.DeleteChannel(publicChannel5.Id) CheckNoError(t, resp) + th = Setup().InitBasic().InitSystemAdmin() + isLicensed := utils.IsLicensed() license := utils.License() restrictPublicChannel := *utils.Cfg.TeamSettings.RestrictPublicChannelManagement @@ -894,7 +896,6 @@ func TestDeleteChannel(t *testing.T) { utils.License().Features.SetDefaults() utils.SetDefaultRolesBasedOnConfig() - th = Setup().InitBasic().InitSystemAdmin() Client = th.Client team = th.BasicTeam user = th.BasicUser |