From 54eff271bd025a4753a5fa76c3db5799c383c67f Mon Sep 17 00:00:00 2001 From: Arya Khochare <91268931+Aryakoste@users.noreply.github.com> Date: Wed, 27 Nov 2024 18:32:12 +0530 Subject: [PATCH] Fixed errcheck issues in server/channels/app/integration_action_test.go (#29039) Co-authored-by: Ben Schumacher --- server/.golangci.yml | 1 - server/channels/app/integration_action_test.go | 6 ++++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/server/.golangci.yml b/server/.golangci.yml index 40ed0dd6a1..4a43304415 100644 --- a/server/.golangci.yml +++ b/server/.golangci.yml @@ -93,7 +93,6 @@ issues: channels/app/import_functions.go|\ channels/app/imports/import_validators.go|\ channels/app/integration_action.go|\ - channels/app/integration_action_test.go|\ channels/app/job_test.go|\ channels/app/migrations.go|\ channels/app/permissions.go|\ diff --git a/server/channels/app/integration_action_test.go b/server/channels/app/integration_action_test.go index 6880ddc137..e6e02d49d2 100644 --- a/server/channels/app/integration_action_test.go +++ b/server/channels/app/integration_action_test.go @@ -582,9 +582,11 @@ func TestSubmitInteractiveDialog(t *testing.T) { Errors: map[string]string{"name1": "some error"}, } - b, _ := json.Marshal(resp) + b, err := json.Marshal(resp) + require.NoError(t, err) - w.Write(b) + _, err = w.Write(b) + require.NoError(t, err) })) defer ts.Close()