diff options
author | Joram Wilander <jwawilander@gmail.com> | 2015-10-30 10:57:25 -0400 |
---|---|---|
committer | Joram Wilander <jwawilander@gmail.com> | 2015-10-30 10:57:25 -0400 |
commit | 256be4c14dfd99fc923d497cc6d7dfe3f4e8e3c5 (patch) | |
tree | f85d6a4707eaab904694aa4fc42aca917f03fdc4 /api/user_test.go | |
parent | c2cd58a33f52c6567e39d8ba563425dc06916d41 (diff) | |
parent | bedf85a122359a70cbb21be1219a5d566466273e (diff) | |
download | chat-256be4c14dfd99fc923d497cc6d7dfe3f4e8e3c5.tar.gz chat-256be4c14dfd99fc923d497cc6d7dfe3f4e8e3c5.tar.bz2 chat-256be4c14dfd99fc923d497cc6d7dfe3f4e8e3c5.zip |
Merge pull request #1211 from mattermost/PLT-340
PLT-340 allow team directory and open invites
Diffstat (limited to 'api/user_test.go')
-rw-r--r-- | api/user_test.go | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/api/user_test.go b/api/user_test.go index b54e030c5..0ad3541bc 100644 --- a/api/user_test.go +++ b/api/user_test.go @@ -661,12 +661,6 @@ func TestUserUpdateRoles(t *testing.T) { t.Fatal("Should have errored, not admin") } - name := make(map[string]string) - name["new_name"] = "NewName" - if _, err := Client.UpdateTeamDisplayName(name); err == nil { - t.Fatal("should have errored - user not admin yet") - } - team2 := &model.Team{DisplayName: "Name", Name: "z-z-" + model.NewId() + "a", Email: "test@nowhere.com", Type: model.TEAM_OPEN} team2 = Client.Must(Client.CreateTeam(team2)).Data.(*model.Team) @@ -707,12 +701,6 @@ func TestUserUpdateRoles(t *testing.T) { t.Fatal("Roles did not update properly") } } - - Client.LoginByEmail(team.Name, user2.Email, "pwd") - - if _, err := Client.UpdateTeamDisplayName(name); err != nil { - t.Fatal(err) - } } func TestUserUpdateActive(t *testing.T) { |