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/user_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/user_test.go')
-rw-r--r-- | api4/user_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/api4/user_test.go b/api4/user_test.go index b3fd83760..1067ebaf6 100644 --- a/api4/user_test.go +++ b/api4/user_test.go @@ -261,7 +261,7 @@ func TestCreateUserWithInviteId(t *testing.T) { inviteId := model.NewId() _, resp := Client.CreateUserWithInviteId(&user, inviteId) - CheckInternalErrorStatus(t, resp) + CheckNotFoundStatus(t, resp) CheckErrorMessage(t, resp, "store.sql_team.get_by_invite_id.find.app_error") }) @@ -283,7 +283,7 @@ func TestCreateUserWithInviteId(t *testing.T) { CheckNoError(t, resp) _, resp = Client.CreateUserWithInviteId(&user, inviteId) - CheckInternalErrorStatus(t, resp) + CheckNotFoundStatus(t, resp) CheckErrorMessage(t, resp, "store.sql_team.get_by_invite_id.find.app_error") }) |