From 1ecb98d9f5a6053a1ee1ce262b6a3306192f6616 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs=20Espino?= Date: Fri, 3 Aug 2018 17:13:50 +0200 Subject: Idiomatic error handling on team sql store (#9201) --- api4/user_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'api4/user_test.go') 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) { -- cgit v1.2.3-1-g7c22