summaryrefslogtreecommitdiffstats
path: root/api4
diff options
context:
space:
mode:
authorJesús Espino <jespinog@gmail.com>2018-08-03 17:13:50 +0200
committerGitHub <noreply@github.com>2018-08-03 17:13:50 +0200
commit1ecb98d9f5a6053a1ee1ce262b6a3306192f6616 (patch)
treee35e26b20df526783dc8a95cff29e4081585303c /api4
parent61f98d92faf82a38041c8e709c4bc36e7792752c (diff)
downloadchat-1ecb98d9f5a6053a1ee1ce262b6a3306192f6616.tar.gz
chat-1ecb98d9f5a6053a1ee1ce262b6a3306192f6616.tar.bz2
chat-1ecb98d9f5a6053a1ee1ce262b6a3306192f6616.zip
Idiomatic error handling on team sql store (#9201)
Diffstat (limited to 'api4')
-rw-r--r--api4/user_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/api4/user_test.go b/api4/user_test.go
index 78693e05f..6cd64b7cf 100644
--- a/api4/user_test.go
+++ b/api4/user_test.go
@@ -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) {