diff options
author | Harrison Healey <harrisonmhealey@gmail.com> | 2017-06-28 07:56:29 -0400 |
---|---|---|
committer | Joram Wilander <jwawilander@gmail.com> | 2017-06-28 07:56:29 -0400 |
commit | c66799a83943af0ae03b17b657936e5327c55550 (patch) | |
tree | ca1bf150190fa95f84d010a854937817a03f6129 /api4/team_test.go | |
parent | 4484c82b1becc2fe5ab7b6842b3419b16c523445 (diff) | |
download | chat-c66799a83943af0ae03b17b657936e5327c55550.tar.gz chat-c66799a83943af0ae03b17b657936e5327c55550.tar.bz2 chat-c66799a83943af0ae03b17b657936e5327c55550.zip |
Fixed error information being obscured when joining teams with API v4 (#6751)
Diffstat (limited to 'api4/team_test.go')
-rw-r--r-- | api4/team_test.go | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/api4/team_test.go b/api4/team_test.go index c5e08fe97..e62790173 100644 --- a/api4/team_test.go +++ b/api4/team_test.go @@ -781,7 +781,7 @@ func TestAddTeamMember(t *testing.T) { tm, resp := Client.AddTeamMember(team.Id, otherUser.Id) CheckForbiddenStatus(t, resp) if resp.Error == nil { - t.Fatalf("ERror is nhul") + t.Fatalf("Error is nhul") } Client.Logout() @@ -971,14 +971,11 @@ func TestAddTeamMember(t *testing.T) { } tm, resp = Client.AddTeamMemberFromInvite("", "", "junk") - CheckBadRequestStatus(t, resp) + CheckNotFoundStatus(t, resp) if tm != nil { t.Fatal("should have not returned team member") } - - _, resp = Client.AddTeamMemberFromInvite("", "", "junk") - CheckBadRequestStatus(t, resp) } func TestAddTeamMembers(t *testing.T) { |