Fixed error information being obscured when joining teams with API v4 (#6751)

Этот коммит содержится в:
Harrison Healey
2017-06-28 07:56:29 -04:00
коммит произвёл Joram Wilander
родитель 4484c82b1b
Коммит c66799a839
7 изменённых файлов: 10 добавлений и 27 удалений

Просмотреть файл

@@ -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")
})