Fixed errcheck issues in server/channels/app/product_notices_test.go (#29194)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
80f69a9c84
Коммит
a19ec14967
@@ -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()
|
||||
|
||||
Ссылка в новой задаче
Block a user