diff --git a/server/.golangci.yml b/server/.golangci.yml index 6bb7eb5656..1c7fe228b6 100644 --- a/server/.golangci.yml +++ b/server/.golangci.yml @@ -136,7 +136,6 @@ issues: channels/app/post_metadata.go|\ channels/app/post_persistent_notification_test.go|\ channels/app/post_test.go|\ - channels/app/product_notices_test.go|\ channels/app/security_update_check.go|\ channels/app/server.go|\ channels/app/server_test.go|\ diff --git a/server/channels/app/product_notices_test.go b/server/channels/app/product_notices_test.go index 6eb64e0468..b83c116313 100644 --- a/server/channels/app/product_notices_test.go +++ b/server/channels/app/product_notices_test.go @@ -633,9 +633,11 @@ func TestNoticeFetch(t *testing.T) { require.NoError(t, err) server1 := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { if strings.HasSuffix(r.URL.Path, "notices.json") { - w.Write(noticesBytes) + _, err = w.Write(noticesBytes) + require.NoError(t, err) } else { - w.Write(noticesBytes2) + _, err = w.Write(noticesBytes2) + require.NoError(t, err) } })) defer server1.Close()