summaryrefslogtreecommitdiffstats
path: root/api4/channel_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'api4/channel_test.go')
-rw-r--r--api4/channel_test.go3
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