From ff5b622e65c9b3ede6d2fb53c60f7fe1e66a5593 Mon Sep 17 00:00:00 2001 From: Eric Chlebek Date: Fri, 23 Feb 2024 15:58:50 -0600 Subject: [PATCH] Resolve unused errors (SA4006) --- server/serverimpl_test.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/server/serverimpl_test.go b/server/serverimpl_test.go index bc04a6d9..8f473de7 100644 --- a/server/serverimpl_test.go +++ b/server/serverimpl_test.go @@ -628,6 +628,7 @@ func TestServerHonoursClientRequestContentEncoding(t *testing.T) { require.NoError(t, err) req, err := http.NewRequest("POST", "http://"+settings.ListenEndpoint+settings.ListenPath, bytes.NewReader(b)) + require.NoError(t, err) req.Header.Set(headerContentType, contentTypeProtobuf) req.Header.Set(headerContentEncoding, contentEncodingGzip) resp, err := hc.Do(req) @@ -700,6 +701,7 @@ func TestServerHonoursAcceptEncoding(t *testing.T) { b, err := proto.Marshal(&sendMsg) require.NoError(t, err) req, err := http.NewRequest("POST", "http://"+settings.ListenEndpoint+settings.ListenPath, bytes.NewReader(b)) + require.NoError(t, err) req.Header.Set(headerContentType, contentTypeProtobuf) req.Header.Set(headerAcceptEncoding, contentEncodingGzip) resp, err := hc.Do(req)