diff --git a/server/.golangci.yml b/server/.golangci.yml index 248d96eeef6..4d869b6d0e2 100644 --- a/server/.golangci.yml +++ b/server/.golangci.yml @@ -77,7 +77,6 @@ issues: channels/api4/export_test.go|\ channels/api4/file_test.go|\ channels/api4/import_test.go|\ - channels/api4/integration_action_test.go|\ channels/api4/ip_filtering_test.go|\ channels/api4/job_test.go|\ channels/api4/license.go|\ diff --git a/server/channels/api4/integration_action_test.go b/server/channels/api4/integration_action_test.go index d2ed44153fa..bfda9530d42 100644 --- a/server/channels/api4/integration_action_test.go +++ b/server/channels/api4/integration_action_test.go @@ -41,7 +41,8 @@ func (th *testHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) { assert.NotEmpty(th.t, poir.TriggerId) assert.Equal(th.t, "button", poir.Type) assert.Equal(th.t, "test-value", poir.Context["test-key"]) - w.Write([]byte("{}")) + _, err = w.Write([]byte("{}")) + require.NoError(th.t, err) w.WriteHeader(200) }