Fixes errcheck in helper_test.go (#28909)

This commit is contained in:
Harshit Vashisht
2024-10-29 20:46:58 +05:30
committed by GitHub
parent a44b604752
commit fd70b0a0cd
2 changed files with 3 additions and 2 deletions

View File

@@ -98,7 +98,6 @@ issues:
channels/app/config_test.go|\
channels/app/desktop_login.go|\
channels/app/email/email_test.go|\
channels/app/email/helper_test.go|\
channels/app/export.go|\
channels/app/export_test.go|\
channels/app/file.go|\

View File

@@ -18,6 +18,7 @@ import (
"github.com/mattermost/mattermost/server/v8/channels/testlib"
"github.com/mattermost/mattermost/server/v8/config"
"github.com/mattermost/mattermost/server/v8/platform/shared/templates"
"github.com/stretchr/testify/require"
)
type TestHelper struct {
@@ -87,7 +88,8 @@ func setupTestHelper(s store.Store, tb testing.TB) *TestHelper {
*config.PasswordSettings.Uppercase = false
*config.PasswordSettings.Symbol = false
*config.PasswordSettings.Number = false
configStore.Set(config)
_, _, err = configStore.Set(config)
require.NoError(tb, err)
licenseFn := func() *model.License { return model.NewTestLicense() }