Fixed errcheck issues in server/channels/app/product_notices_test.go (#29194)

Этот коммит содержится в:
Arya Khochare
2024-11-14 00:34:22 +05:30
коммит произвёл GitHub
родитель 80f69a9c84
Коммит a19ec14967
2 изменённых файлов: 4 добавлений и 3 удалений

Просмотреть файл

@@ -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|\

Просмотреть файл

@@ -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()