mirror of
https://github.com/mattermost/mattermost.git
synced 2026-05-28 04:35:04 -04:00
Fixes errcheck in helper_test.go (#28909)
This commit is contained in:
parent
a44b604752
commit
fd70b0a0cd
2 changed files with 3 additions and 2 deletions
|
|
@ -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|\
|
||||
|
|
|
|||
|
|
@ -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() }
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue