Skip to content

Commit

Permalink
Fixes errcheck in helper_test.go (mattermost#28909)
Browse files Browse the repository at this point in the history
  • Loading branch information
HarshitVashisht11 authored Oct 29, 2024
1 parent a44b604 commit fd70b0a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 0 additions & 1 deletion server/.golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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|\
Expand Down
4 changes: 3 additions & 1 deletion server/channels/app/email/helper_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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() }

Expand Down

0 comments on commit fd70b0a

Please sign in to comment.