[MM-61460] Fix errcheck issues in server/channels/app/plugin_signature_test.go (#29348)

Co-authored-by: Ben Schumacher <ben.schumacher@mattermost.com>
This commit is contained in:
Ivy Gesare 2024-11-29 12:36:19 +03:00 committed by GitHub
parent 4ec4b4d525
commit ff1ffc51dc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -107,7 +107,6 @@ issues:
channels/app/platform/web_conn.go|\
channels/app/platform/web_hub.go|\
channels/app/platform/web_hub_test.go|\
channels/app/plugin_signature_test.go|\
channels/app/plugin_test.go|\
channels/app/post_helpers_test.go|\
channels/app/post_test.go|\

View file

@ -42,7 +42,8 @@ func TestPluginPublicKeys(t *testing.T) {
fileReader, err := os.Open(filepath.Join(path, publicKeyFilename))
require.NoError(t, err)
defer fileReader.Close()
th.App.AddPublicKey(publicKeyFilename, fileReader)
appErr := th.App.AddPublicKey(publicKeyFilename, fileReader)
require.Nil(t, appErr)
file, appErr := th.App.GetPublicKey(publicKeyFilename)
require.Nil(t, appErr)
require.Equal(t, publicKey, file)