Skip to content

Commit

Permalink
test: fix test transport
Browse files Browse the repository at this point in the history
  • Loading branch information
alexec committed Sep 15, 2021
1 parent 44b321e commit d7060b3
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions testapi/http.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,7 @@ func init() {
t.MaxConnsPerHost = 32
t.MaxIdleConnsPerHost = 32
t.TLSClientConfig = &tls.Config{InsecureSkipVerify: true}
httpClient := &http.Client{
Timeout: 10 * time.Second,
}
httpClient := &http.Client{Timeout: 10 * time.Second, Transport: t}
http.HandleFunc("/http/pump", func(w http.ResponseWriter, r *http.Request) {
url := r.URL.Query().Get("url")
duration, err := time.ParseDuration(r.URL.Query().Get("sleep"))
Expand Down

0 comments on commit d7060b3

Please sign in to comment.