Idiomatic error handling on team sql store (#9201)

Этот коммит содержится в:
Jesús Espino
2018-08-03 17:13:50 +02:00
коммит произвёл GitHub
родитель 61f98d92fa
Коммит 1ecb98d9f5
2 изменённых файлов: 126 добавлений и 88 удалений

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

@@ -259,7 +259,7 @@ func TestCreateUserWithInviteId(t *testing.T) {
_, resp := Client.CreateUserWithInviteId(&user, inviteId)
CheckNotFoundStatus(t, resp)
CheckErrorMessage(t, resp, "store.sql_team.get_by_invite_id.find.app_error")
CheckErrorMessage(t, resp, "store.sql_team.get_by_invite_id.finding.app_error")
})
t.Run("NoInviteId", func(t *testing.T) {
@@ -281,7 +281,7 @@ func TestCreateUserWithInviteId(t *testing.T) {
_, resp = Client.CreateUserWithInviteId(&user, inviteId)
CheckNotFoundStatus(t, resp)
CheckErrorMessage(t, resp, "store.sql_team.get_by_invite_id.find.app_error")
CheckErrorMessage(t, resp, "store.sql_team.get_by_invite_id.finding.app_error")
})
t.Run("EnableUserCreationDisable", func(t *testing.T) {