Skip to content

Commit

Permalink
Fixed new linter issues
Browse files Browse the repository at this point in the history
  • Loading branch information
mrz1836 committed Feb 12, 2024
1 parent a4e54dd commit b5d2098
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion server/error_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
2 changes: 1 addition & 1 deletion server/server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand Down
2 changes: 1 addition & 1 deletion srv.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}
Expand Down

0 comments on commit b5d2098

Please sign in to comment.