diff --git a/server/error_test.go b/server/error_test.go index 9f254e3..e6b6ef3 100644 --- a/server/error_test.go +++ b/server/error_test.go @@ -8,7 +8,7 @@ import ( // TestErrorResponse will test the method ErrorResponse() func TestErrorResponse(t *testing.T) { - t.Run("placeholder test", func(t *testing.T) { + t.Run("placeholder test", func(_ *testing.T) { w := httptest.NewRecorder() ErrorResponse(w, &http.Request{}, ErrorMethodNotFound, "test message", http.StatusBadRequest) diff --git a/server/server_test.go b/server/server_test.go index be08fb8..f4cac37 100644 --- a/server/server_test.go +++ b/server/server_test.go @@ -29,7 +29,7 @@ func TestCreateServer(t *testing.T) { // TestStart will test the method Start() func TestStart(t *testing.T) { - t.Run("run server", func(t *testing.T) { + t.Run("run server", func(_ *testing.T) { /* // todo: run in a non-blocking way to test config := &Configuration{ diff --git a/srv.go b/srv.go index f774d8e..143a85d 100644 --- a/srv.go +++ b/srv.go @@ -14,7 +14,7 @@ func (c *Client) defaultResolver() net.Resolver { return net.Resolver{ PreferGo: true, StrictErrors: false, - Dial: func(ctx context.Context, network, address string) (net.Conn, error) { + Dial: func(ctx context.Context, _, _ string) (net.Conn, error) { d := net.Dialer{ Timeout: c.options.dnsTimeout, }