Skip to content

Commit

Permalink
Fix errcheck issues in server/channels/app/plugin_deadlock_test.go (m…
Browse files Browse the repository at this point in the history
…attermost#29113)

Co-authored-by: Ben Schumacher <[email protected]>
  • Loading branch information
Alenoda and hanzei authored Nov 5, 2024
1 parent 6b5732a commit 74b33c7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
1 change: 0 additions & 1 deletion server/.golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,6 @@ issues:
channels/app/plugin_api_tests/manual.test_http_hijack_plugin/main.go|\
channels/app/plugin_api_tests/manual.test_serve_metrics_plugin/main.go|\
channels/app/plugin_api_tests/test_update_user_auth_plugin/main.go|\
channels/app/plugin_deadlock_test.go|\
channels/app/plugin_health_check_test.go|\
channels/app/plugin_install.go|\
channels/app/plugin_requests.go|\
Expand Down
9 changes: 6 additions & 3 deletions server/channels/app/plugin_deadlock_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,8 @@ func TestPluginDeadlock(t *testing.T) {
}
for _, pluginTemplate := range pluginTemplates {
b := &strings.Builder{}
pluginTemplate.Execute(b, templateData)
err := pluginTemplate.Execute(b, templateData)
require.NoError(t, err)

plugins = append(plugins, b.String())
}
Expand Down Expand Up @@ -189,7 +190,8 @@ func TestPluginDeadlock(t *testing.T) {
}
for _, pluginTemplate := range pluginTemplates {
b := &strings.Builder{}
pluginTemplate.Execute(b, templateData)
err := pluginTemplate.Execute(b, templateData)
require.NoError(t, err)

plugins = append(plugins, b.String())
}
Expand Down Expand Up @@ -272,7 +274,8 @@ func TestPluginDeadlock(t *testing.T) {
}
for _, pluginTemplate := range pluginTemplates {
b := &strings.Builder{}
pluginTemplate.Execute(b, templateData)
err := pluginTemplate.Execute(b, templateData)
require.NoError(t, err)

plugins = append(plugins, b.String())
}
Expand Down

0 comments on commit 74b33c7

Please sign in to comment.