Skip to content

Commit

Permalink
Prefix var name with underscore
Browse files Browse the repository at this point in the history
  • Loading branch information
madhuravi committed Nov 22, 2016
1 parent 84aac57 commit c104958
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/uhttp/http_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ import (
)

// Custom default client since http's defaultClient does not set timeout
var defaultClient = &http.Client{Timeout: 5 * time.Second}
var _defaultClient = &http.Client{Timeout: 5 * time.Second}

func TestNew_OK(t *testing.T) {
WithService(New(registerNothing), nil, []service.Option{configOption()}, func(s service.Owner) {
Expand Down Expand Up @@ -208,7 +208,7 @@ func makeRequest(m *Module, method, url string, body io.Reader, fn func(r *http.
panic(err)
}

response, err := defaultClient.Do(request)
response, err := _defaultClient.Do(request)
if err != nil {
panic(err)
}
Expand Down

0 comments on commit c104958

Please sign in to comment.