mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
SqlTermsOfService migrates to plain errors (#14675)
* Advances migragint TermsOfService * Advances... * Replaced message key * Replaced message key * Replaced message key * Replaced message key * Refactor name of errors * Fix mixed type of error * Fix-imports * i18n-extract * Rollback changes * Rollback changes * Rollback changes Co-authored-by: mattermod <mattermod@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
85a69d6112
commit
52cf817c8e
@@ -4285,7 +4285,7 @@ func TestRegisterTermsOfServiceAction(t *testing.T) {
|
||||
defer th.TearDown()
|
||||
|
||||
success, resp := th.Client.RegisterTermsOfServiceAction(th.BasicUser.Id, "st_1", true)
|
||||
CheckErrorMessage(t, resp, "store.sql_terms_of_service_store.get.no_rows.app_error")
|
||||
CheckErrorMessage(t, resp, "app.terms_of_service.get.no_rows.app_error")
|
||||
assert.Nil(t, success)
|
||||
|
||||
termsOfService, err := th.App.CreateTermsOfService("terms of service", th.BasicUser.Id)
|
||||
|
||||
Reference in New Issue
Block a user