rename variable because collide with the imported package name (#3298)

* rename variable because collide with the imported package name

* handle unhandled error in context_1.17_test.go
This commit is contained in:
Amir Hossein
2022-09-01 06:51:27 +04:30
committed by GitHub
parent 0128d74f34
commit 2c9e5fe47a
2 changed files with 8 additions and 3 deletions
+2 -2
View File
@@ -100,7 +100,7 @@ func TestH2c(t *testing.T) {
url := "http://" + ln.Addr().String() + "/"
http := http.Client{
httpClient := http.Client{
Transport: &http2.Transport{
AllowHTTP: true,
DialTLS: func(netw, addr string, cfg *tls.Config) (net.Conn, error) {
@@ -109,7 +109,7 @@ func TestH2c(t *testing.T) {
},
}
res, err := http.Get(url)
res, err := httpClient.Get(url)
if err != nil {
fmt.Println(err)
}