summaryrefslogtreecommitdiffstats
path: root/api4/channel_test.go
diff options
context:
space:
mode:
authorGeorge Goldberg <george@gberg.me>2018-02-12 13:52:42 +0000
committerJesús Espino <jespinog@gmail.com>2018-02-12 14:52:42 +0100
commit1edcabbc9bd2e571dd72a2df699bc2979274add2 (patch)
tree8a3c479d5ad999945c6221f413651f268dae5e9f /api4/channel_test.go
parent3b83cc7dd3fc8c6281bbd74b5b85a6a06efcbb6d (diff)
downloadchat-1edcabbc9bd2e571dd72a2df699bc2979274add2.tar.gz
chat-1edcabbc9bd2e571dd72a2df699bc2979274add2.tar.bz2
chat-1edcabbc9bd2e571dd72a2df699bc2979274add2.zip
Fix tests. (#8244)
Diffstat (limited to 'api4/channel_test.go')
-rw-r--r--api4/channel_test.go8
1 files changed, 0 insertions, 8 deletions
diff --git a/api4/channel_test.go b/api4/channel_test.go
index 4deceb4c4..d85c939b2 100644
--- a/api4/channel_test.go
+++ b/api4/channel_test.go
@@ -770,12 +770,6 @@ func TestDeleteChannel(t *testing.T) {
_, resp = Client.DeleteChannel(publicChannel3.Id)
CheckNoError(t, resp)
- // successful delete by TeamAdmin of channel created by user
- publicChannel4 := th.CreatePublicChannel()
- th.LoginTeamAdmin()
- _, resp = Client.DeleteChannel(publicChannel4.Id)
- CheckNoError(t, resp)
-
// default channel cannot be deleted.
defaultChannel, _ := th.App.GetChannelByName(model.DEFAULT_CHANNEL, team.Id)
pass, resp = Client.DeleteChannel(defaultChannel.Id)
@@ -837,8 +831,6 @@ func TestDeleteChannel(t *testing.T) {
th.AddPermissionToRole(model.PERMISSION_DELETE_PUBLIC_CHANNEL.Id, model.CHANNEL_USER_ROLE_ID)
th.AddPermissionToRole(model.PERMISSION_DELETE_PRIVATE_CHANNEL.Id, model.CHANNEL_USER_ROLE_ID)
- th.RemovePermissionFromRole(model.PERMISSION_DELETE_PUBLIC_CHANNEL.Id, model.TEAM_USER_ROLE_ID)
- th.RemovePermissionFromRole(model.PERMISSION_DELETE_PRIVATE_CHANNEL.Id, model.TEAM_USER_ROLE_ID)
Client = th.Client
team = th.BasicTeam