From fd70b0a0cd095e331d1cecfee24da2f83264e50d Mon Sep 17 00:00:00 2001 From: Harshit Vashisht <120767685+HarshitVashisht11@users.noreply.github.com> Date: Tue, 29 Oct 2024 20:46:58 +0530 Subject: [PATCH] Fixes errcheck in helper_test.go (#28909) --- server/.golangci.yml | 1 - server/channels/app/email/helper_test.go | 4 +++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/server/.golangci.yml b/server/.golangci.yml index a566179c020aa..d57892f9f63e4 100644 --- a/server/.golangci.yml +++ b/server/.golangci.yml @@ -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|\ diff --git a/server/channels/app/email/helper_test.go b/server/channels/app/email/helper_test.go index 4bec182013ae4..b4a10b88209d0 100644 --- a/server/channels/app/email/helper_test.go +++ b/server/channels/app/email/helper_test.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() }