Idiomatic error handling on team sql store (#9201)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
61f98d92fa
Коммит
1ecb98d9f5
@@ -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) {
|
||||
|
||||
Ссылка в новой задаче
Block a user