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)