We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2156f09 commit 0bf1cdfCopy full SHA for 0bf1cdf
1 file changed
backend/infra/http/client_test.go
@@ -383,7 +383,7 @@ func TestHTTPClient_DoHTTPRequest_BytesReader(t *testing.T) {
383
assert.Equal(t, testData, body)
384
assert.Equal(t, "text/plain", r.Header.Get("Content-Type"))
385
w.WriteHeader(http.StatusOK)
386
- w.Write([]byte(`{"result": "ok"}`))
+ _, _ = w.Write([]byte(`{"result": "ok"}`))
387
}))
388
defer server.Close()
389
@@ -411,7 +411,7 @@ func TestHTTPClient_DoHTTPRequest_ErrorStatusCodes(t *testing.T) {
411
412
server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
413
w.WriteHeader(statusCode)
414
- w.Write([]byte("Error message"))
+ _, _ = w.Write([]byte("Error message"))
415
416
417
0 commit comments